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

I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1203


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

2565


what is the difference between JES3 and JES2?

1137


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

1288


What does a disposition of (new,catlg,keep) for a dsn mean?

1159


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

1350


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1250


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

1250


how to do automated restart when a job abends?

1385


In job processing, what happens in conversion stage?

1200


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

2452


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1232


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2681


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

1123


What are the jcl procedures?

1124