How to identify where file is empty or not? How many ways are
there to identifying?
Answer Posted / bala
1) Use IDCAMS
SYSIN DD *
PRINT INDATASET(file name) COUNT(1)
gives RC 04 if the file is an empty file.
2)Compare the file with a known empty file using IEBCOMPR
utility. Comparing two empty files gives Nonzero RC
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
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
Explain the function of job statement in jcl?
what happens in execution stage in job processing?
Are there any set of rules for the names of the steps used in a job? What are they?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain the function of //cntl statement?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
Explain the function of dd disp parameter?
In job processing, what happens in conversion stage?
Explain dfsort utility?
how you can access an uncataloged dataset in a JCL?
what is DSN in JCL and what are the parameters to declare the DSN?
List the various advantages of using jcl language?