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

Difference between cobol and cobol-ii?

0 Answers  


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

0 Answers   iNautix,


Without using move verb how to move one variable to another.

5 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


What are the different rules of SORT operation?

0 Answers  


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,


Name the divisions in a COBOL program ?

7 Answers  


What is the mode in which you will OPEN a file for writing?

4 Answers  


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


Write a program to enter and display the names of students in a class using the occurs clause.

0 Answers  


Categories