We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?

Answer Posted / sundar

Using IDCAMS utility

In SYSIN:
PRINT(infile) COUNT(1)

If this step return 4 then the file is empty otherwise if
return 0 then the file is not empty.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax of JCL statement?

919


How to do automated restart when a job abend?

1035


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

937


What is the function of the steplib dd statement?

934


How to pass the parameter in parm using linkage section ? (syntax)?

863


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

973


How can a fb file convert to vb file using sort program?

1061


How can values be passed from the job stream to an executable program?

1106


What do you know about jcl?

859


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1232


what are the types of abends that occur on job failure? And explain the possible causes of these

1342


Is it possible to left uncode disp?

918


What does a disposition of (MOD,DELETE,DELETE) mean ?

871


which utility is used to sort a file in jcl?

974


In sms datasets, what is the function of the dd avgrec keyword?

852