SCOUG-Programming Mailing List Archives
Return to [ 09 |
April |
2005 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
Peter,
Please note the following information from the REXXLIB online help:
ARRAYSORT(stem,[first],[n],[start],[length],[order],[type],...)
Summary: ARRAYSORT sorts an integrally-indexed REXX compound variable
based on one or more fields in the array values.
Arguments: stem: The stem of the compound variable to be sorted.
first: The index of the first array element to be sorted
(default is 1).
n: The number of array elements to be sorted. (The
default is to the end of the array.)
start: The position in the value of the beginning of a
sort field (default is 1).
length: The length of a sort field. The default is 100.
order: 'A' for ascending sort (default), 'D' for descending
sort.
type: 'C' for case-sensitive character sort (default), 'I'
for case-insensitive character sort, 'N' for numeric
sort.
Returns: 1 if no error occurred, or 0 if some error occurred, such as
insufficient memory or a non-numeric value was encountered
during a numeric sort.
Notes: Up to 10 separate fields can be specified, by repeating the
start, length, order, and type arguments. The first
specified field is the primary sort field. Secondary fields
are considered only if all preceding fields compare equal.
A character sort is defined by the standard ASCII collating
sequence. Normally this is case-sensitive. The 'I' sort type
can be used to request a case-insensitive sort. A numeric sort
is defined by standard REXX comparison of numeric values.
The order of elements in the original compound variable is
changed based on the sort specification.
As with any array, the number of elements in the array is
expected to be found in the item with subscript 0. If the
number of elements to be sorted is not specified, this count
is used to identify the LTNR
HCM
On Sat, 9 Apr 2005 15:37:57 PDT7, Peter Skye wrote:
>Bob wrote:
>>
>> REXXLIB
>> DOSRENAME( file_name_1, file_name_2 )
>
>Thank you, Bob!
>
>Ouch! $55 for RexxLib (http://www.quercus-sys.com/rexxlib.htm). And it
>does have a sort (ArraySort) but the page doesn't say if it is an
>ordered sort or not, and I usually need an ordered sort.
>
>I think I'll just
>
> 'rename' file1 file2
>
>sigh
>
>Thanks again. If I get some time I'll walk down the street and collect
>enough soda cans to buy it. (Unless the bar is open on my way back from
>the recycling place. Or Vons demands I return the shopping cart before
>I have it filled.)
>
>- Peter
>
>
>
>=====================================================
>
>To unsubscribe from this list, send an email message
>to "steward@scoug.com". In the body of the message,
>put the command "unsubscribe scoug-programming".
>
>For problems, contact the list owner at
>"postmaster@scoug.com".
>
>=====================================================
>
>
>
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 09 |
April |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|