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


Please Help Members By Posting Answers For Below Questions

Explain dd statement in jcl?

628


Can an individual step be restricted from using all the jobs allowed cpu time?

998


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

787


How can the submitting users racf authority be overridden in a job stream?

734


Explain how can the attributes of one sms dataset be copied to another dataset?

694






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

913


Is it possible to left uncode disp?

701


What is use of restart and how to use it?

754


What is jcl in mainframe, and how many types of jcl statements are there for a job?

621


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

966


how JCL works?

785


What is the significance of addrspc parameter in exec statement?

720


when can a job time-out occur? How to overcome that?

737


what is the purpose of coding class parameter in job statement?

706


List the different components of jcl statement?

679