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
What are the different open modes available in cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
Write some characteristics of cobol as means of business language.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How do you get the data to code the BMS macro?
Write the code implementing the perform … varying.
How can you get the ksds file records into your cobol program?
What is cobol?
What is link edit in cobol?
What is the difference between Call and a Link?
How you can characterize tables in cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are 77 levels used for?
what happens if parmparameter passes zero bytes to the program