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

Define concatenating?

1086


What dd statement is used to supply the name of a dataset?

1378


How to submit jcl through a cobol program?

1135


How to pass the parameter in parm using linkage section ? (syntax)?

1109


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

1366


Name what parameter directs the output of the job log dataset?

1039


State the uses of syspring, sysin, sort fields, sum fields and dummy.

1068


Are there any set of rules for the names of the steps used in a job?

1101


what happens in conversion stage in job processing?

1207


What are the jcl procedures?

1098


Is automatic restart possible in jcl? If yes, how?

1103


Why include statement is used in a jcl?

1151


WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

1339


In job processing, what happens in conversion stage?

1175


In sms datasets, what is the function of the dd avgrec keyword?

1080