Cobol Question: Download Cobol PDF

How you can read the file from bottom?

Tweet Share WhatsApp

Answer:

The question is very general. Let us look into these possibilities:

1. QSAM (sequential) file: You can run it thru SORT utility adding SEQNUM and then sort then sort by SEQNUM in DESC order
2. VSAM: In CICS, you can read backward using READREV;
3. VSAM: I Batch, unload the VSAM file using SORT in DESC order by key value

Download Cobol PDF Read All 110 Cobol Questions
Previous QuestionNext Question
If you are current on the owner of a set, what is the difference between obtain next and obtain first?Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?