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
 

 

How to execute a REXX from another REXX with further options

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 55
Location: Germany

PostPosted: Thu Jul 15, 2010 5:15 pm    Post subject: How to execute a REXX from another REXX with further options
Reply with quote

Hi guys,

when I try to execute a REXX from the command line with an option (i.e. SPUFI; Option 1), it works fine : Command ===> TSO DB2I;1

How can I execute this call within a REXX ?

When I try "%DB2I;1" in my REXX, I got the message :
IKJ56621I INVALID COMMAND NAME SYNTAX

What is the problem, maybe the delimiter...?
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 Jul 15, 2010 5:43 pm    Post subject: Reply to: How to execute a REXX from another REXX with furth
Reply with quote

Using cmd;1 is something you would tend to do in ISPF, not in TSO. Maybe you should be using an ISPF SELECT command instead?

If I want to call an exec from another exec and pass it parameters, I would just code:

Code:
/* REXX */
...
"EXECNAME 'PARAMETERS'"
...
Back to top
View user's profile Send private message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 55
Location: Germany

PostPosted: Thu Jul 15, 2010 6:37 pm    Post subject:
Reply with quote

Hi Kevin,

thanks for the quick answer !

... your solutions don't work for me, because I like to pass an option not a parameter. The parameter is not recognized as an option by the called REXX.

One (I think not smart solution but it works) is :

address ispexec
zcmd = ';TSO DB2I;1'
"control nondispl end"
"display panel(isrtso)"

Has anybody a better solution for my prolem ?
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 -> TSO/ISPF 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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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