How to identify in JCL that an input file is empty without
reading it?
Answer Posted / jeeva225
//job331ab job notify=&sysuid
//step1 exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=job331ab.prasad.infile,disp=shr
//sysin dd*
print infile(input)count(1)
/*
if return code rc=00 then it is not empty file,
return code rc=04 then it is empty
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Name what parameter directs the output of the job log dataset?
What is the significance of addrspc parameter in exec statement?
How dummy is used in jcl?
Is automatic restart possible in jcl?
What is the purpose of disp parameter?
How can unused space allocation be returned to the system when a dataset is closed?
What is condition checking in jcl? Is this possible?
What parameter directs the output of the job log dataset?
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?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
In job processing, what happens in execution stage?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What is the function of dd name parameter with a 2 part structure; audit.report?
List in order the hierarchical levels of jcl?
Explain the jcl exec statement?