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


Please Help Members By Posting Answers For Below Questions

What is notcat 2 - gs?

925


can any one plzzzzzz tell the jcl code for creating ps using idcams

10486


How gdg are concatenated?

662


Explain the function of the steplib dd statement?

631


Explain dd statement in jcl?

634






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

1959


Explain how can the attributes of one sms dataset be copied to another dataset?

700


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

2258


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

933


How do you submit a job for execution?

634


List the different jcl statements that are not permitted in the procedures?

632


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5056


Where & How Do You Code Identifier In Jcl?

690


Which statement is used to identify the private libraries in job?

669


Explain the job statement in jcl?

639