How to identify in JCL that an input file is empty without
reading it?
Answer Posted / mainframeking
Usinf IDCAMS we can check:
//step01 dd exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=file name to check, disp=shr
//sysin dd *
print infile(input)character count(1)
if return code is 0, file is not empty
if return code is 4, file is empty
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Define concatenating?
What dd statement is used to supply the name of a dataset?
How to submit jcl through a cobol program?
How to pass the parameter in parm using linkage section ? (syntax)?
which utility is used to run a cobol-db2 program?
Name what parameter directs the output of the job log dataset?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
Are there any set of rules for the names of the steps used in a job?
what happens in conversion stage in job processing?
What are the jcl procedures?
Is automatic restart possible in jcl? If yes, how?
Why include statement is used in a jcl?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
In job processing, what happens in conversion stage?
In sms datasets, what is the function of the dd avgrec keyword?