hari haran Beginner
Joined: 22 Jun 2004 Posts: 10 Topics: 4
|
Posted: Tue Mar 22, 2005 3:26 pm Post subject: Extraction of data from 3.15 Search Listing |
|
|
Hi,
We have a requirement in which all the programs that are used in a Proc have to be listed out.
We can search the string 'PGM=' in 3.15 to give us all the programs used in the particular PROCLIB.
But it is in the below format :
Code: |
PROC1 --------- STRING(S) FOUND ---------
846 //PS095 EXEC PGM=WTOMESS,
866 //PS100 EXEC PGM=MULTIGEN
892 //PS105 EXEC PGM=WTOMESS
PROC2 --------- STRING(S) FOUND ---------
187 //PS020 EXEC PGM=SORT,REGION=4096K
354 //PS035 EXEC PGM=WTOMESS
373 //PS040 EXEC PGM=MULTIGEN,
|
Can the above search o/p file be reformatted to include only the Proc Name & the programs used, like the one below :
Code: |
PROC1
WTOMESS
MULTIGEN
WTOMESS
PROC2
SORT
WTOMESS
MULTIGEN
|
Note :
1. String 'PGM=' does not start in fixed positions,
2. The reformatted file shold only have the program name without any additional character like comma.
The above can be done using COBOL inspect, but is there any other way to do it.
Thanks,
Hari. |
|