Skip to content

Commit 7e2b9fe

Browse files
committed
Fix typos etc.
1 parent af1f785 commit 7e2b9fe

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

PGM_REFS/Readme.MD

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# SQL Procedure to find Program Usage recursively using DSPPGMREF
22

3-
Given a program (or any of the objects that DSPPGMREF handles), the PGM_REFS procedure will find all the obects that the program uses, and then recursively find all that objects that they use, and so on, to an essentally unlimited depth.
3+
Given a program (or any of the objects that DSPPGMREF handles), the PGM_REFS procedure will find all the obects that the program uses, and then recursively finds all that objects that they use, and so on, to an essentally unlimited depth.
44

5-
This is the product of my experimentation with PL/SQL. It may be short on error handling, and it doesn't do any validity checking on the paremeters.
5+
This is the product of my experimentation with PL/SQL. It may be short on error handling, and it doesn't do any validity checking on the parameters.
66

77
If you have more experience than me, please feel free to suggest better coding techniques.
88

9-
So far I have not found a decent manual or turorial. If you have any I'd like to know.
9+
So far I have not found a decent manual or turorial. If you know of any please pass them on.
1010

11-
My primary source was trial and error, with help
12-
from these articles by Ted Holt in IT Jungle:
11+
My primary technique was trial and error, with help
12+
from these articles on IT Jungle:
1313
[Ted HolT Article 1](https://www.itjungle.com/2017/06/12/guru-error-handling-sql-pl-part-1/) and
1414
[Ted Holt Article 2](https://www.itjungle.com/2017/10/16/guru-error-handling-sql-pl-part-2/)
1515
and browsing [Scott Forstie Gists on Github](https://gist.github.com/forstie
@@ -20,17 +20,24 @@ or X-Analysis. If you don't have one, this might be somewhat useful.
2020

2121
## pgm_refs_Tbl.sql
2222

23-
This is the DDL to create the file that the procedure builds.
23+
This is the DDL to create the REFS file that the procedure builds.
2424

2525
Change the library and then run this first.
2626

2727
## pgm_refs.sql
28-
This is the code to create the PGM_REFS procedure. The library in which the REFS file is build needs to be changed to suit your environment.
28+
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.
2929

3030
## pgm_refs_test.SQL
3131

32-
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.
32+
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.)
3333

3434
## Sample Output File Contents
3535

36-
![Sample ](Images/Sample1.png)
36+
![Sample ](Images/Sample1.png)
37+
38+
## Debugging
39+
40+
I had difficulty debugging this.
41+
42+
1. I was working on PUB400.COM and the System Debugger in iACS shows the source, but it would never stop on breakpoints.
43+
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.

0 commit comments

Comments
 (0)