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

What do you understand by jcl?

632


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

1633


What is condition checking in jcl? Is this possible?

629


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

625


how can you check if a file is empty using jcl?

817






what is the JCL statement consists of?

701


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

864


what is a jcl?

695


what is the purpose of coding class parameter in job statement?

728


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

706


which utility is used to sort a file in jcl?

752


what is use of dcb parameter in dd statement?

781


which parameter is used to check the syntax of a jcl without executing it?

802


How does jcl act on a cobol code?

659


How is a type of file defined in the jcl that executes the cobol program?

716