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 can we find total no of records in a file ....is there
any utility......?

Answer Posted / varsha

//SYSIN DD *
INREC FIELDS=(1,4,C'00001')
SORT FIELDS=(01,04,CH,A)
SUM FIELDS=(05,05,ZD,A)
OUTREC FIELDS=(01,04,05,05)
/*
Briefly, I'm adding a numeric 00001 to each record and
sorting them on the numeric field and summing all such
records, which will give you the desired output.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happens if parmparameter passes zero bytes to the program

2184


Difference between array and sub-script ?

1708


What is static and dynamic call in cobol?

1116


What is Pic 9v99 Indicates in COBOL?

1339


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1268


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

1252


what are decleratives in cobol?

2308


) how do u code after getting data?

2210


What is the difference between Call and a Link?

1263


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1394


How do define dynamic array in cobol.

1185


What is a scope terminator give example?

1156


how to access the file from prodution from changeman tool and to submit a file to production

7628


Have you used comp and comp-3 in your project? And how?

2521


How do you get the data to code the BMS macro?

2016