R
rault
I'm a mainframe programmer looking for help with Perl.
I need the logic/code to scan existing JCL scripts and extract only the
JCL STEPs that generate reports, especially those using the Xerox DJDE
format.
In other words, I'm looking for a script and/or the logic necessary to
scan JCL text files, extract only the step(s) that print a report and
rebuild a JCL script to print said report(s).
* I have figured out the the steps I'm looking for should contain one
or
more of the following strings:
"PGM=PAJZDJDE"
"SYSOUT=1"
"SYSOUT=2"
"SYSOUT=3"
"SYSOUT=4"
"SYSOUT=5"
"SYSOUT=6"
"SYSOUT=7"
"SYSOUT=8"
"SYSOUT=9"
"UAPB.OPTICAL"
* Also, the script should convert "SYSOUT=[1-9]" above to "SYSOUT=O"
(letter O).
Any pointers or code samples would be greatly appreciated.
I need the logic/code to scan existing JCL scripts and extract only the
JCL STEPs that generate reports, especially those using the Xerox DJDE
format.
In other words, I'm looking for a script and/or the logic necessary to
scan JCL text files, extract only the step(s) that print a report and
rebuild a JCL script to print said report(s).
* I have figured out the the steps I'm looking for should contain one
or
more of the following strings:
"PGM=PAJZDJDE"
"SYSOUT=1"
"SYSOUT=2"
"SYSOUT=3"
"SYSOUT=4"
"SYSOUT=5"
"SYSOUT=6"
"SYSOUT=7"
"SYSOUT=8"
"SYSOUT=9"
"UAPB.OPTICAL"
* Also, the script should convert "SYSOUT=[1-9]" above to "SYSOUT=O"
(letter O).
Any pointers or code samples would be greatly appreciated.