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

I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1313


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

1302


For what purpose steplib and joblib are used ?

1075


how do you code a null statement?

1275


what is the purpose of coding notify parameter in job statement?

1100


What is the significance of addrspc parameter in exec statement?

1147


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1505


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

1349


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

1278


Name a few IBM utility programs, and explain its function.

4898


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

1015


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


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?

2219


how to compare two datasets without using superce because output is limited to 133 bytes

2055


Which statement is used to identify the private libraries in job?

1126