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
what happens if parmparameter passes zero bytes to the program
Difference between array and sub-script ?
What is static and dynamic call in cobol?
What is Pic 9v99 Indicates in COBOL?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
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?
what are decleratives in cobol?
) how do u code after getting data?
What is the difference between Call and a Link?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How do define dynamic array in cobol.
What is a scope terminator give example?
how to access the file from prodution from changeman tool and to submit a file to production
Have you used comp and comp-3 in your project? And how?
How do you get the data to code the BMS macro?