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...

Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?

Answer Posted / arul anand.a

//STEP01 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//INDD DD DSN=FILE1,
// DISP=SHR
//OUTDD DD DSN=FILE2,
// DISP=SHR,
REPRO INFILE(INDD) OUTFILE(OUTDD) COUNT(1)

THIS WILL GIVE RC = 04 IF THE INFILE IS EMPTY.
OTHERWISE IT WILL GIVE 0.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why include statement is used in a jcl?

1237


A dd statement consists of 4 fields. Name them?

1476


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

1521


what are JCLLIB and STEPLIB in JCL?

1236


what operation is performed by job statement?

1178


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

1604


what is the use of IEBGENER utility?

1227


What do you understand by the term job time – out and how can you overcome that?

1087


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

1368


When output dataset space is required, what quantity categories are used?

1421


which utility is used a dummy utility?

1521


List in order the hierarchical levels of jcl?

1150


In job processing, what happens in conversion stage?

1242


How jcl is used for testing batch programs?

1354


What is the difference between the positional and keyword parameters? Give examples.

1318