oucheeeeee
Technical User
- Jul 8, 2008
- 9
Hi Folks,
Wrote the following code to check the contents of a one line dataset and dependent on what it finds, sets a RC=
"EXECIO" 1 "DISKR INPUTDD"
000011 pull line
000012 parse var line drop 115 extract 126
000013 say extract
000014 Select
000015 when extract = 'PTLF_EXTRAC' then rc = 03
000016 when extract = 'TLF_EXTRACT' then rc = 01
000017 otherwise
000018 say 'QRYMSG contains invalid command - check cols 115 - 125'
000019 say 'of UGT1.B24.ES64S.QRYMSG'
000020 RC = 99
000021 end
000022 exit rc
I have a new quest - instead of checking a dataset, how could I check something in a JCL stream. Can I substitute DISKIO for something that'll read JCL?
In the JCL, a value will be either XXXXXX or some other VALID entry. If it IS XXXXXX I want to set RC01 if anything else, RC03
Any pointers welcome.
Regards,
Rob
Wrote the following code to check the contents of a one line dataset and dependent on what it finds, sets a RC=
"EXECIO" 1 "DISKR INPUTDD"
000011 pull line
000012 parse var line drop 115 extract 126
000013 say extract
000014 Select
000015 when extract = 'PTLF_EXTRAC' then rc = 03
000016 when extract = 'TLF_EXTRACT' then rc = 01
000017 otherwise
000018 say 'QRYMSG contains invalid command - check cols 115 - 125'
000019 say 'of UGT1.B24.ES64S.QRYMSG'
000020 RC = 99
000021 end
000022 exit rc
I have a new quest - instead of checking a dataset, how could I check something in a JCL stream. Can I substitute DISKIO for something that'll read JCL?
In the JCL, a value will be either XXXXXX or some other VALID entry. If it IS XXXXXX I want to set RC01 if anything else, RC03
Any pointers welcome.
Regards,
Rob