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
what is the difference between JES3 and JES2?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
What is the use of disp parameter?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
what are the types of abends that occur on job failure? And explain the possible causes of these
In job processing, what happens in conversion stage?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
What is the function of the steplib dd statement?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
Is there any command to check wether the ps file is in sorted order?
what is the use of JCL?
Explain the function of the steplib dd statement?
Explain the function of //cntl statement?
what are the statements that are not valid to be included in an include statement?