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:
John Pollard <[log in to unmask]>
Reply To:
John Pollard <[log in to unmask]>
Date:
Thu, 3 Oct 2002 14:47:33 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
 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 *

ATOM RSS1 RSS2