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


Please Help Members By Posting Answers For Below Questions

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

1043


Explain the function of job statement in jcl?

655


what happens in execution stage in job processing?

657


Are there any set of rules for the names of the steps used in a job? What are they?

614


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

1933






What methodology can be adapted to transfer data to a program that is coded using the exec statement?

616


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

811


Explain the function of //cntl statement?

661


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

1631


Explain the function of dd disp parameter?

599


In job processing, what happens in conversion stage?

746


Explain dfsort utility?

676


how you can access an uncataloged dataset in a JCL?

656


what is DSN in JCL and what are the parameters to declare the DSN?

726


List the various advantages of using jcl language?

856