Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SORT function in REXX. Clarification needed.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: SORT function in REXX. Clarification needed.
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:
http://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

Moderator Team Head


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

PostPosted: Thu Dec 04, 2008 5:19 pm    Post subject: Reply to: SORT function in REXX. Clarification needed.
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Dec 04, 2008 5:20 pm    Post subject: Reply to: SORT function in REXX. Clarification needed.
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    Post subject: Reply to: SORT function in REXX. Clarification needed.
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: 2360
Location: Israel

PostPosted: Thu Dec 04, 2008 5:45 pm    Post subject:
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    Post subject: Reply to: SORT function in REXX. Clarification needed.
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: 2360
Location: Israel

PostPosted: Thu Dec 04, 2008 6:14 pm    Post subject:
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    Post subject: Reply to: SORT function in REXX. Clarification needed.
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us