Handle DSPPGMREF Failures
This commit is contained in:
+18
-3
@@ -22,15 +22,30 @@ or X-Analysis. If you don't have one, this *might* be somewhat useful.
|
||||
|
||||
This is the DDL to create the REFS file that the procedure builds.
|
||||
|
||||
Change the library and then run this first.
|
||||
Change the library of the REFS table to one of your libraries and then run this first.
|
||||
|
||||
## pgm_refs.sql
|
||||
This is the code to create the PGM_REFS procedure. The library in which the REFS file is built needs to be changed to suit your environment.
|
||||
This is the code to create the PGM_REFS procedure. Change the library of the REFS table to the library you used above.
|
||||
There are two places to change following a comments like this: <<<<<< Change this table library >>>>>>>
|
||||
|
||||
## pgm_refs_test.SQL
|
||||
|
||||
These are some samples of calling the procedure to test it. I used iACS Run SQL Scripts. You could also call it in a CL program using the RUNSQLSTM command. (Or run it in STRSQL.)
|
||||
|
||||
## Running
|
||||
|
||||
### Parameters
|
||||
See pgm_refs_test.sql for some sample call.
|
||||
|
||||
You need to supply library and name. The type will default to `*PGM` and the depth will default to `0` if not supplied.
|
||||
|
||||
### Library list
|
||||
|
||||
Since many objects will have a library of `*LIBL`, that is what will get passed to DSPPGMREF for expansion. So you need to have your library list contain all libraries whose objects you want expanded.
|
||||
|
||||
### DSPPGMREF Failure
|
||||
|
||||
If DSPPGMREF failsinternally, `*ERROR` will appear in the three `USES_*` fields in the REFS file. If you get a lot of these check you have your library list correct.
|
||||
## Sample Output File Contents
|
||||
|
||||

|
||||
@@ -39,5 +54,5 @@ These are some samples of calling the procedure to test it. I used iACS Run SQL
|
||||
|
||||
I had difficulty debugging this.
|
||||
|
||||
1. I was working on PUB400.COM and the System Debugger in iACS shows the source, but it would never stop on breakpoints.
|
||||
1. I was working on PUB400.COM and the System Debugger in iACS shows the source, but it would never stop on breakpoints. You can debug on the green screen but it isn't as convenient.
|
||||
2. The DSPPGMREF outfiles are in QTEMP. You can make a single change to put them in one of you libraries if you want to look at them. You will also have to comment out the delete at the bottom of the loop.
|
||||
Reference in New Issue
Block a user