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
What is the difference between a binary search and a sequential search what are the pertinent cobol?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What are 77 levels used for?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is static and dynamic call in cobol?
What is Pic 9v99 Indicates in COBOL?
Name the divisions, which are available in a cobol program?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Write the code implementing the perform … varying.
example for sub strings ? and refernce modifications whit output pls
Explain how you can characterize tables in cobol?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
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
What guidelines should be followed to write a structured cobol prgm?
What are literals?