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
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is a SSRANGE and NOSSRANGE?
Write some characteristics of cobol as means of business language.
How can you get the ksds file records into your cobol program?
how to convert the recors form vsam file to db2 table tru file aid
How you can characterize tables in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How do u write test cases?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you get the data to code the BMS macro?
What is redefines clause in COBOL?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Which Search verb is equivalent to PERFORM…VARYING?
Name the divisions, which are available in a cobol program?