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
how you can access an uncataloged dataset in a JCL?
What is concatenating?
What is notcat 2 - gs?
what is the use of JCL?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What are hierarchy levels in jcl?
What is the use of disp parameter?
In job processing, what happens in conversion stage?
Explain about ISPF/TSO Commands
Is it possible to code instream data in a PROC?
what JCL Procedures?
Explain the function of a dd statement?
What is the function of a dd statement?
when can a job time-out occur? How to overcome that?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK