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 find out the number of records in a file using JCL

Answer Posted / anilkumar

//COUNT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=INPUT DATASET,
// DISP=SHR
//TOOLIN DD *
*option1
COUNT FROM(IN)
*Instead of count u can aslo use stats operator
*option2
stats from(IN) on(20,5,ZD)
*output will be available in spool ie.in toolmsg
/*

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the types of job control statements?

1224


Is automatic restart possible in jcl?

1278


Explain how can a jobs execution priority be modified?

1262


Is it possible to left uncode disp? If yes, how?

1230


can any one plzzzzzz tell the jcl code for creating ps using idcams

11765


a dd statement has 2 types of parameters. Name them?

1177


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

1347


How jcl work to handle various input output file operations?

1221


how JCL works?

1325


Explain how can return codes be tested before execution of a job step?

1373


what is use of disp parameter in dd statement?

1151


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

1319


Which dd parameters are required?

1244


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

1337


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

1198