How to read records from flat file in reverse order through
COBOL program?

Answer Posted / laxmaiah

i have some knowledge in flat files,
(open input file-name reversed)
in this type use read the data in reverse order
AND write another file

Is This Answer Correct ?    16 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


What is the default value(s) for an initialize and what keyword allows for an override of the default?

691


How do define dynamic array in cobol.

667


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.

5051


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

701






How many bytes S(8) comp field occupy and its maximum value?

1626


What is cobol?

739


What is a scope terminator give example?

652


Which Search verb is equivalent to PERFORM…VARYING?

678


What is the difference between goback, stop run and exit program in cobol?

916


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1835


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5672


How do you get the data to code the BMS macro?

1470


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1226


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

579