How to test thru JCL if any file(PS or VSAM) is empty or
not. I do not want to use any COBOL prog or Ezytrieve and
want to do using utility.
Answer Posted / vani
By IDcams its is possible
// STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//FILE1 DD DSN=INPUT-FILE,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILE1)
DUMP COUNT(1)
/*
IF THE FILE IS EMPTY JCL GIVES RC=4
Is This Answer Correct ? | 21 Yes | 6 No |
Post New Answer View All Answers
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
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?
How would you understand error(execution phase)?
Explain the function of the dd dcb keyword?
What is jcl in mainframe?
define cond parameter in jcl?
how would you create a temporary dataset? And where will you use them?
What is the purpose of dd?
Why include statement is used in a jcl?
How do you overcome this limitation ?
what is “Cond= even” and “Cond=only”?
What is the format of comment statement?
how can the same proc be re-used and called by many jobs?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
what are the statements that are not valid to be included in an include statement?