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

What is the significance of addrspc parameter in the exec statement?

1055


Is their any limit for data sets?

1168


Explain how can a jobs execution priority be modified?

1182


List in order the hierarchical levels of jcl?

1092


What is Cataloged Procedures?

1153


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1240


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

1250


what happens in execution stage in job processing?

1126


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1275


What happens if both JOBLIB & STEPLIB is specified ?

1125


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5519


Does jcl support automatic restart?

1213


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4884


How to execute 2nd and 4th steps among 5 steps in jcl proc?

1280


what JCL Procedures?

1228