JCL to read CONTROL CARD data & change the course of action
Hi,
I need some suggestion on below query. Requirement details are mentioned below.
Code one JCL with 4 steps (STEP01, STEP02, STEP03, STEP04). Now STEP01 will read one CONTROL CARD data and as per the contents of that CONTROL CARD data next step execution will be decided.
CONTROL CARD will have either 01 or 02 or 03. Now if 01 there in the CONTROL CARD then STEP02 will execute, if 02 then STEP03 will execute and if 03 then STEP04 will execute.
This should be done by using only one JCL (IBM Utility programs can be used). No COBOL,PL/1 or REXX coding can be used..
Example: (Just an example)
--------------------------------------------
Suppose the data entered in the CONTROL CARD file is ‘02’ then back up XXXXXX dataset (in STEP03) in to a GDG version.
I am not very sure how to do that (my first impression was this can not be done by using only JCL or with the help of IBM utilities).. I checking on some SORT utilities or ICETOOL for this... but if anyone has any idea and can share with me then I would be grateful!
Questions by subratachrec
Showing Answers 1 - 2 of 2 Answers
Related Answered Questions
Related Open Questions
JCL to read CONTROL CARD data & change the course of action
I need some suggestion on below query. Requirement details are mentioned below.
Code one JCL with 4 steps (STEP01, STEP02, STEP03, STEP04). Now STEP01 will read one CONTROL CARD data and as per the contents of that CONTROL CARD data next step execution will be decided.
CONTROL CARD will have either 01 or 02 or 03. Now if 01 there in the CONTROL CARD then STEP02 will execute, if 02 then STEP03 will execute and if 03 then STEP04 will execute.
This should be done by using only one JCL (IBM Utility programs can be used). No COBOL,PL/1 or REXX coding can be used..
Example: (Just an example)
--------------------------------------------
Suppose the data entered in the CONTROL CARD file is ‘02’ then back up XXXXXX dataset (in STEP03) in to a GDG version.
I am not very sure how to do that (my first impression was this can not be done by using only JCL or with the help of IBM utilities).. I checking on some SORT utilities or ICETOOL for this... but if anyone has any idea and can share with me then I would be grateful!
Profile Answers by subratachrec Questions by subratachrec
Questions by subratachrec
Related Answered Questions
Related Open Questions