View previous topic :: View next topic
|
Author |
Message |
oerdgie
New User
Joined: 22 Nov 2007 Posts: 64 Location: Germany
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
oerdgie
New User
Joined: 22 Nov 2007 Posts: 64 Location: Germany
|
|
|
|
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 |
|
|
|