I have two questions here.
1. How to read a flat file in reverse order?
2. How to read a VSAM KSDS file in reverse order?
In both the cases we donot know the total number of records.
Answer Posted / hanish
Flat file may be read in reverse order by using the following code
READ file-name into data-name REVERSED.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are the pertinent COBOL
What are declaratives and what are their uses in cobol?
In COBOL programming, what is PERFORM? What is VARYING?
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.
What is the difference between comp and comp-3?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How are the next sentence and continue different from each other?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Write a program to explain size error.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How do you reference the following file formats from cobol programs?