Subject: | |
From: | |
Reply To: | |
Date: | Thu, 3 Oct 2002 12:21:24 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I'd insert at bottom and bubblesort one pass for each new record.
> -----Original Message-----
> From: Rao, Raghu [mailto:[log in to unmask]]
> Sent: Thursday, October 03, 2002 12:06 PM
> To: [log in to unmask]
> Subject: COBOL : Sort on WS array record
>
>
> Hi all,
>
> 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 ?
>
> Thanks
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|