Rao, Raghu wrote:
> Is there anyway that I can SORT a RECORD in a COBOL program
> (without using a FILE).
>
> I have a working storage record BUFFER-DATA of 160 bytes which
> occurs 1000 times as an array. I have my key values as Account
> (first 12 char) and Invoice (next 10 Char). I am reading my
> data from database through DBGET, processing it and moving it
> into buffer. This data is not sorted. I would like to sort it
> based on Account and then on Invoice.
>
> How do I sort this BUFFER-DATA ? Any idea ?
I have a small library routine written in Cobol that will do this.
Email me if you would like a copy.
--
John Pollard
Remove nix the spam. to reply
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *