Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?
Answer Posted / arun
Use the SORT utility with NULLOUT=RC04 OR RC16..If the file
is empty the step returns either 04 or 16 depending on what
you coded.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is it possible to code instream data in a PROC?
How can a jobs execution priority be modified?
Explain about LMQUERY�give a dialog information about a data set
What is the difference between run mode and addressing mode?
Explain the function of a dd statement?
Is acct parameter mandatory?
how to do automated restart when a job abends?
how to compare two datasets without using superce because output is limited to 133 bytes
a dd statement has 2 types of parameters. Name them?
How can the attributes of one sms dataset be copied to another dataset?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is the purpose of the dd keylen parameter?
which utility is used to sort a file in jcl?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What parameter of the job statement is used to limit the cpu time consumed by the job?