Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?
Answer Posted / jayaprabhu
using the Uitility IEBPTPCH
If RC=04 no data ie the file is empty
rc=00 file is not empty
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
How do you create a temporary dataset?
How can a stopped job be started again?
Can I send output of job to my remote device careerride123?
How to override loadlib?
Why block size is multiple of lrecl in jcl?
What dd statement is used to supply the name of a dataset?
Does jcl support automatic restart?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
what is JCL?
how you can access an uncataloged dataset in a JCL?
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 is DSN parameter and DISP parameter is used for?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?