There are two steps in a JCl, the first one generates a
report while the second step send an email saying the
report has been generated, but the second steps should only
be executed when the report file is non-empty. How can it
be acheived. We may include steps in between.
Answer Posted / madhan
Use IEBPTPCH utility to verify the records in the input
file. if you get other than zero return code (2 or 4), then
there is no records in the input file(input file is empty).
based on the return code from the step1, step2 will execute
otherwise skip step2.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the purpose of dd?
How can the disposition of sysout datasets be set for an entire jobstream?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How to override loadlib?
how you will the direct the data to spool using sysout option?
what sort card you will use to copy the data from one dataset to another dataset?
what happens in conversion stage in job processing?
How do you create a temporary dataset?
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
Explain the hierarchy levels in jcl?
Differentiate between the joblib and the steplib statements?
how do you access an uncataloged dataset in a jcl?
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
What is use of restart and how to use it?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?