How to read the last 100 records from a COBOL file. The file
contains N number of records.

Answer Posted / guest

First move HIGH-VALUES to the key field and then read the
file.It will read the last record then put READ PREV in
loop 100 times to get the last 100 records.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to explain size error.

679


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

1476


IF I mention stop run in CICS what happens?

1898


What are the different data types in cobol?

801


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661






How to know whether the module is dynamical or statistical?

658


What is Pic 9v99 Indicates in COBOL?

731


What is comp-1 and comp-2?

766


what is search and searchall?what is the diffrence between them?give an best example?

5563


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

1962


How to remove 2 duplicate records and copy only one using job control language?

755


What are the pertinent COBOL

2047


What is the problem of ordered sequential files access?

704


Differentiate between structured cobol programming and object-oriented cobol programming.

670


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8172