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

//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=YOUR INPUT DATASET,DISP=SHR
//SORTOUT DD DSN=YOUR OUTPUT FILE IN REVERSE ORDER,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//SYSIN DD *
INREC FIELDS=(1,80,SEQNUM,8,ZD)
SORT FIELDS=(81,8,ZD,D)
OUTREC FIELDS=(1,80)
/*

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In COBOL, what is the different between index and subscript?

1185


Give some examples of command terminators?

1195


how to refer the data field?

2209


Can we change the password using ALTER? anyone tried and changed?

1951


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2337


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

3092


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1042


What are various search techniques in cobol? Explain.

1026


how do you reference the esds vsam file formats from cobol programs

1131


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

1062


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9018


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5316


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1093


A table has two indexes defined. Which one will be used by the SEARCH?

1230


What is cobol?

1194