Suppose i have 2 steps in my pgm. Step1- creates a file,
Step2 - generates report from file in step1, What changes
have to be made in Step2, so that if the file in Step1 is
empty Step2 should not be executed? No changes to be made to
Step1.

Answer Posted / vinay sonar

If file is empty you will get return code 4.
So put always true confition COND=(4,EQ) in step2.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does jcl act on a cobol code?

657


When space is allocated for an output dataset, what units can be used?

748


what is JCL?

696


Explain the function of the dd dcb keyword?

700


what JCL Procedures?

699






IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

1625


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2263


how would you create a temporary dataset? And where will you use them?

768


what is “Cond= even” and “Cond=only”?

740


Is condition checking possible in jcl?

717


How can return codes be tested before execution of a job step?

919


Explain the function of a dd statement?

659


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1947


How to execute 2nd and 4th steps among 5 steps in jcl proc?

747


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

726