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
Explain the function of //cntl statement?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
How can return codes be tested before execution of a job step?
What is Cataloged Procedures?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
what are JCLLIB and STEPLIB in JCL?
Explain how can an in-stream dataset be terminated?
Must tape dataset definitions include vol=ser specifications?
What is the function of the dd dcb keyword?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
How to alter the parameters for the existing gdg?
What are the 2 types of parameters in dd statement?
What is NOTCAT ?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
Explain the purpose of the dd keylen parameter?