how can we find total no of records in a file ....is there
any utility......?
Answers were Sorted based on User's Feedback
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 |
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 |
what is sysncpoint?
can we write paragraph in area B .....
Write a program to concert an Indexed file into Sequential file?
Which division and paragraphs are mandatory for a COBOL program?
What compiler option would you use for dynamic linking?
How many sections are there in data division?.
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
IF I mention stop run in CICS what happens?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
What are the divisions in a cobol program? Which one is the mandatory division among them?
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
how to change picture class of copy book variable inside program?