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...

Hi...................
I have records like this
aaaa
cccc
bbbb
And i want output like this
bbbb
cccc
aaaa
How can it possible ?.
Note:Please make sure records are in unsorted order.
somebody plzzz help me.



Answer Posted / nsingh

SORT FIELDS=COPY
OUTREC FIELDS=(1,80,SEQNUM,ZD,4)

It will add sequence number at position 81 of 4 bytes in
ascending order.
Now Sort the sequence number in descending order to reverse
the sequence and then remove sequence number from file.

SORT FIELDS=(81,4,ZD,D)
OUTREC FIELDS=(1,80)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Call and a Link?

1120


Can you please let me know the centre name of INS certification in Kolkata.

2179


how do you reference the printer file formats from cobol programs

1140


what is the difference between COBOL2 AND COBOL390?

2986


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

1286


Explain what you understand by passing by value.

1099


Explain the configuration section of a cobol program with examples of syntax.

1122


explain sorting techniques in cobol program?

1142


What is length is cobol?

1055


What are the pertinent COBOL commands?

3103


Write a program that uses move corresponding.

1072


What is inspect in cobol ?

1240


What is rmode(any) ?

1181


How to know whether the module is dynamical or statistical?

1080


Write a program to explain size error.

1136