× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Are you parsing the input for the dynamic selects to catch any sql injection
attacks ;-)

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry Adams
Sent: 15 July 2009 18:42
To: Midrange Systems Technical Discussion
Subject: RE: Sorting an array to sequence a sub-file

Just to put this into context for this list (after all, this ain't the RPG
list), have you thought about using SQL? SELECT... with an ORDER BY...
into a cursor and then processing the cursor seems to work for me. I a real
novice at SQL, but I've written dynamic SELECT's where the user can choose
their own sort sequence (order). They seem to like that.

Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Chris Bipes
Sent: Wednesday, July 15, 2009 9:16 AM
To: Midrange Systems Technical Discussion
Subject: RE: Sorting an array to sequence a sub-file

Can you read the source data, from file? By the date you want your
output sorted? Where does this data come from?



Chris Bipes
Director of Information Services
CrossCheck, Inc.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan Rasch
Sent: Wednesday, July 15, 2009 7:07 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Sorting an array to sequence a sub-file




I have been asked to order a sub-file by a date, and plan to write to an
array instead of the

subfile record until it fills, sort the array, and then load the subfile
from this array.



Sure would be nice to see a SORTS (sort sub-file) command someday, but
probably not too hot.



One disadvantage I have is some of the prograns are in RPGIII, and my
subfile records exceed 256.

So I need more than one array, unless I convert to IV (I might).



Any gotcha's here?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.