by enrico-sorichetti » Fri Apr 13, 2012 1:17 pm
in a library containg JCLs referring to PROCS
most probably searching for the word PROC will not return anything useful
I have seldom seen in JCL the construct EXEC PROC=<procname>
usually everybody writes EXEC <procname>
the most reasonable approach is to use SRCHFOR to search for the word EXEC
and process afterward the result wit SORT or REXX to extract the token that follows the EXEC word
and disambiguate between
EXEC PGM=
EXEC PROC=
EXEC <procname>
it is enough to ...
check for "//" in columns 1-2
scan/find the EXEC word
extract the token/word that follows
-- providing that the token could be " " terminated or "," terminated
reparse the token found for disambiguation
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort