Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to identify in JCL that an input file is empty without
reading it?

Answer Posted / jeeva225

//job331ab job notify=&sysuid
//step1 exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=job331ab.prasad.infile,disp=shr
//sysin dd*
print infile(input)count(1)
/*
if return code rc=00 then it is not empty file,
return code rc=04 then it is empty

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of the dd dcb keyword?

1326


what are JCLLIB and STEPLIB in JCL?

1236


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1305


what is DSN parameter and DISP parameter is used for?

1214


How does jcl specify the job to the operating system?

1312


Explain about LMQUERY�give a dialog information about a data set

1510


What is the purpose of the dd keylen parameter?

1286


which utility is used to sort a file in jcl?

1279


Which dd parameters are required?

1247


Mention the types of job control statements?

1226


Explain how can a stopped job be started again?

1183


whats the diff bw the evaluate also and and?

2419


What is the function of dd name parameter with a 2 part structure; audit.report?

1324


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1268


How can unused space allocation be returned to the system when a dataset is closed?

1566