View previous topic :: View next topic
|
Author |
Message |
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
Please review the below article.
It mentions about SORT function in REXX which sorts a STEM record delimited by space, for eg
Newrecd.1 = ws-var1 1000
Newrecd.2 = ws-var2 400
SORT Newrecd. B A
/* The article claims that, the above sort command will sort the stem array "Newrecd." delimited by space in the order needed. It says, we can specify the order of sort with the help of characters from A-Z , with A being the first varable, B the second variable and so on. Thus, it claims that the above command will yeild below results. */
Newrecd.2 = ws-var2 400
Newrecd.2 = ws-var2 1000
The ARTICLE:
www.ulisoft.org/rexx_referenz/sort.htm
I just wanted to know whether, whatever this article claims is valid or not, because when I tried using this command in REXX, it does not work.
Is there any such command available in rexx which will sort a stem variable delimited by space? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The very first sentence of that document
Quote: |
Reginald offers a proprietary SORT statement.
|
If you're using Reginald REXX, then I would say you should contact them if it's not working as documented.
IBM's TSO/E REXX has no such function. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
it all depends on the rexx implementaton an add on functions
if You read carefully the page You will see that in the first line there is
a clear refernece to Reginald rexx
the article is right as far reginald rexx is concerned,
does not apply to other rexx implementations ( different from wrong ) |
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
Oops...Thanks for the clarification! |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
There's a nice REXX SORT function in CBT file 520.
O. |
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
CBT file 520? Could you clarify? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
Thanks a lot... Its really useful... |
|
Back to top |
|
|
|