Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

3207


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1390


What is the difference between next sentence and continue in cobol programing language?

1273


what is search and searchall?what is the diffrence between them?give an best example?

6918


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3276


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1380


how do you reference the fixed unblock file formats from cobol programs

1302


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1213


What is the local-storage section?

1189


State the various causes of s0c1, s0c5 and s0c7.

1138


what is difference between cobol and cobol/400

23062


What rules are followed by the search verb.

1193


How do u write test cases?

2108


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1205


What are all the divisions of a COBOL program?

1267