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


Please Help Members By Posting Answers For Below Questions

How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

720


What is a SSRANGE and NOSSRANGE?

838


Write some characteristics of cobol as means of business language.

631


How can you get the ksds file records into your cobol program?

650


how to convert the recors form vsam file to db2 table tru file aid

2769






How you can characterize tables in cobol?

727


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

714


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1600


How do u write test cases?

1644


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

724


How do you get the data to code the BMS macro?

1483


What is redefines clause in COBOL?

853


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

667


Which Search verb is equivalent to PERFORM…VARYING?

694


Name the divisions, which are available in a cobol program?

697