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 / mainframeking

Usinf IDCAMS we can check:

//step01 dd exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=file name to check, disp=shr
//sysin dd *
print infile(input)character count(1)

if return code is 0, file is not empty
if return code is 4, file is empty

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1380


what is “Cond= even” and “Cond=only”?

1243


Explain the jcl exec statement?

1084


what is the JCL statement consists of?

1123


How jcl work to handle various input output file operations?

1090


how you can access an uncataloged dataset in a JCL?

1074


How does jcl specify the job to the operating system?

1184


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2403


What statement can be used to send data to another mvs jes3 node?

1571


What is the motivation behind coding class parameter in job statement?

1132


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

1235


Explain how can values be passed from the job stream to an executable program?

1128


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

1230


what is the use of IEBGENER utility?

1114


which utility is used to run a cobol-db2 program?

1302