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
how to convert the recors form vsam file to db2 table tru file aid
Explain the configuration section of a cobol program with examples of syntax.
How do get the result of your program directly on your pc?
example for sub strings ? and refernce modifications whit output pls
How to remove 2 duplicate records and copy only one using job control language?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How do u write test cases?
What is an in line perform? When would you use it? Anything else you wish to say about it.
In COBOL, what is the different between index and subscript?
What are the various section in data division and briefly explain them.
What rules are to be followed while using the corresponding options?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
) How do u handle errors in BMS macro?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Can you please let me know the centre name of INS certification in Kolkata.