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 / mohanasundaram

step1 exec pgm=idcams
sysprint dd sysout=*
sysout dd sysout=*
infile dd dsn=filename,disp=shr
sysin dd *
print(filename)-
count(3)
/*
//

In input file 3 records is there means it will be show maxcc=0 else it will show maxcc=4

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the parameters which can be used to limit the number of records written to a sysout dataset?

1102


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

1560


how JCL works?

1212


What is the syntax of JCL statement?

1160


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1195


define cond parameter in jcl?

1223


in ways data can be passed to a COBOL program from JCL?

1145


Explain how can values be passed from the job stream to an executable program?

1132


What is the function of the dd avgrec keyword in sms datasets?

1288


Explain how can a jobs execution priority be modified?

1149


Explain the function of a dd statement?

1126


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2386


How to run cobol program using jcl?

1157


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?

1228


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

1082