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
Can I send output of job to my remote device careerride123?
What are hierarchy levels in jcl?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
Are there any set of rules for the names of the steps used in a job? What are they?
Why block size is multiple of lrecl in jcl?
What is the difference between run mode and addressing mode?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What is concatenating?
Explain how can return codes be tested before execution of a job step?
How to pass the parameter in parm using linkage section ? (syntax)?
Is condition checking possible in jcl? If yes, how?
what is DSN in JCL and what are the parameters to declare the DSN?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
In sms datasets, what is the function of the dd mgmtclas keyword?
Explain the job statement in jcl?