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 motivation behind coding class parameter in job statement?
How can a jobs execution priority be modified?
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 to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What are hierarchy levels in jcl?
What parameter directs the output of the job log dataset?
i want to store 20 digits . how will u do it in cobol ?
What is the function of the dd avgrec keyword in sms datasets?
what JCL Procedures?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
What is the purpose of disp parameter?
How can an in-stream dataset be terminated?
what is “Cond= even” and “Cond=only”?