can we read records in a file from botom to top. if
possible how can we read

Answer Posted / krishna

If it is a tape file,

OPEN INPUT FILEXXX REVERSED,

then the pointer is posistioned at the last record and read
next will read the prior record...

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


What is the usage of comp fields in cobol?

652


what is the difference between COBOL2 AND COBOL390?

2448


What is the local-storage section?

681


Describe the cobol database components?

676






What is the problem of ordered sequential files access?

693


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2656


Explain the configuration section of a cobol program with examples of syntax.

655


how can i see junk values in dclgen or in hostvariable of comp ?

2538


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

711


What is report-item in COBOL?

704


What are the different rules for performing sort operation?

757


What is difference between static and dynamic call in cobol?

772


Are you comfortable in cobol or jcl?

639


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

706