HP3000-L Archives

October 2002, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dave Waroff <[log in to unmask]>
Reply To:
Dave Waroff <[log in to unmask]>
Date:
Thu, 3 Oct 2002 12:21:24 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
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 *

ATOM RSS1 RSS2