GeekInterview.com
Series: Subject: Topic:
Question: 13 of 148

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!
Asked by: subratachrec | Member Since May-2011 | Asked on: May 19th, 2011

View all questions by subratachrec

Showing Answers 1 - 2 of 2 Answers

One of the approaches I can think of is instead create 3 procs and call the proc depending on the value in control card (populate proc value name from control card).

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.