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......?

Answers were Sorted based on User's Feedback



how can we find total no of records in a file ....is there any utility......?..

Answer / vivek c

Use ICETOOL utility as below.

//TOOLIN DD *
COPY FROM(IN1) USING(CTL1)
/*
//CTL1CNTL DD *
OUTFIL FNAMES=OUT,REMOVECC,NODETAIL,
TRAILER1=('FILE1',5X,COUNT=(M10,LENGTH=5))
/*

Is This Answer Correct ?    5 Yes 0 No

how can we find total no of records in a file ....is there any utility......?..

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

how can we find total no of records in a file ....is there any utility......?..

Answer / roger caviness

fileaid

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More COBOL Interview Questions

can we read records in a file from botom to top. if possible how can we read

12 Answers   ACS,


WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH

2 Answers   Cap Gemini,


why we are using set in searchall?

4 Answers   IBM,


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


how to run sub programs using static and dynamic call ...

3 Answers   TCS,


S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


What is the file organization clause ?

2 Answers  


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

0 Answers  


what is MSGLEVEL?

1 Answers   IBM,


What is the use of intialize verb?

0 Answers  


What is the local-storage section?

0 Answers  


i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19

2 Answers  


Categories