IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SORT function in REXX. Clarification needed.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Dec 04, 2008 5:15 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Dec 04, 2008 5:19 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Dec 04, 2008 5:20 pm
Reply with quote

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
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Dec 04, 2008 5:36 pm
Reply with quote

Oops...Thanks for the clarification!
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Dec 04, 2008 5:45 pm
Reply with quote

There's a nice REXX SORT function in CBT file 520.

O.
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Dec 04, 2008 6:11 pm
Reply with quote

CBT file 520? Could you clarify?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Dec 04, 2008 6:14 pm
Reply with quote

Look here.

O.
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Dec 04, 2008 6:39 pm
Reply with quote

Thanks a lot... Its really useful...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top