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

how to convert the recors form vsam file to db2 table tru file aid

3253


Explain the configuration section of a cobol program with examples of syntax.

1192


How do get the result of your program directly on your pc?

2334


example for sub strings ? and refernce modifications whit output pls

2315


How to remove 2 duplicate records and copy only one using job control language?

1215


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1204


How do u write test cases?

2062


What is an in line perform? When would you use it? Anything else you wish to say about it.

1069


In COBOL, what is the different between index and subscript?

1243


What are the various section in data division and briefly explain them.

1172


What rules are to be followed while using the corresponding options?

1058


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1193


) How do u handle errors in BMS macro?

1955


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3258


Can you please let me know the centre name of INS certification in Kolkata.

2239