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

Explain how can the disposition of sysout datasets be set for an entire jobstream?

1056


What is jcl in mainframe?

1164


how do you code a null statement?

1301


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1139


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

1605


what is the resolution for sb37 error

9006


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

1103


Can I send output of job to my remote device careerride123?

1103


What are the utility programs in jcl?

1124


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

1190


Explain about ISPF/TSO Commands

1896


Differentiate between the joblib and the steplib statements?

1377


What is the function of //cntl statement?

1299


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

1383


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2248