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
What is the syntax of JCL statement?
How to do automated restart when a job abend?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What is the function of the steplib dd statement?
How to pass the parameter in parm using linkage section ? (syntax)?
what is DSN in JCL and what are the parameters to declare the DSN?
How can a fb file convert to vb file using sort program?
How can values be passed from the job stream to an executable program?
What do you know about jcl?
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 ?
what are the types of abends that occur on job failure? And explain the possible causes of these
Is it possible to left uncode disp?
What does a disposition of (MOD,DELETE,DELETE) mean ?
which utility is used to sort a file in jcl?
In sms datasets, what is the function of the dd avgrec keyword?