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 / mchava
using IDCAMS utitlity
Print infile(file name) count(1)
it will check whether the file is empty or not
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Explain dd statement in jcl?
Can an individual step be restricted from using all the jobs allowed cpu time?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
How can the submitting users racf authority be overridden in a job stream?
Explain how can the attributes of one sms dataset be copied to another dataset?
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
Is it possible to left uncode disp?
What is use of restart and how to use it?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
how JCL works?
What is the significance of addrspc parameter in exec statement?
when can a job time-out occur? How to overcome that?
what is the purpose of coding class parameter in job statement?
List the different components of jcl statement?