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

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

988


What is condition checking in jcl? Is this possible?

1077


How does jcl act on code(if you take a cobol program)?

1243


Why include statement is used in a jcl?

1134


Explain the function of //cntl statement?

1118


what is the compile process of cobol program expalin with code

2523


what is the use of JCL?

1121


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

4920


List the various advantages of using jcl language?

1408


which parameter is used to check the syntax of a jcl without executing it?

1323


what are the types of abends that occur on job failure? And explain the possible causes of these

1575


Explain dfsort utility?

1301


how you can direct the data to spool using SYSOUT option?

1425


What are the difference between jcl and jes?

1559


Which dd parameters are required?

1128