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
Is it possible to left uncode disp? If yes, how?
Explain the purpose of dd * statement in jcl?
what are the types of abends that occur on job failure? And explain the possible causes of these
Explain the hierarchy levels in jcl?
What do you know about jcl?
What is condition checking in jcl? Is this possible?
Explain how can the submitting users racf authority be overridden in a job stream?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
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?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
how JCL works?
which utility is used to sort a file in jcl?
Explain the purpose of dd dummy statement?
Define concatenating?