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 is the local-storage section?
How do you differentiate between cobol and cobol-ii?
What are different data types in cobol?
i need a small 3d program using inline and outline.
How arrays can be defined in COBOL?
how do you reference the ksds vsam file formats from cobol programs
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How many bytes S(8) comp field occupy and its maximum value?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between external and global variables in COBOL?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.