How to read records from flat file in reverse order through
COBOL program?
Answer Posted / dimpy19
1. Using FileAid
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=YOUR INPUT DATASET,DISP=SHR
//DD01O DD DSN=YOUR OUTPUT FILE IN REVERSE ORDER,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//SYSIN DD *
$$DD01 COPYBACK
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
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
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the difference between next sentence and continue in cobol programing language?
what is search and searchall?what is the diffrence between them?give an best example?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
how do you reference the fixed unblock file formats from cobol programs
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the local-storage section?
State the various causes of s0c1, s0c5 and s0c7.
what is difference between cobol and cobol/400
What rules are followed by the search verb.
How do u write test cases?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are all the divisions of a COBOL program?