View previous topic :: View next topic
|
Author |
Message |
Unique
New User
Joined: 10 Jul 2007 Posts: 24 Location: Blore
|
|
|
|
Hi,
CMD stmt in select stmt is not working . can u guide if i have to add any stmt to invoke this
)PROC
&ZSEL = TRANS(TRUNC(&T,'.')
1,'CMD(%REXX1)'
2,'CMD(%REXX2)'
' ',' '
*,'?' )
but when i type TSO REXX1, my rexx routine invokes. I am sorry if its sounds simple. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
What's in &T? Is it your command variable?
O. |
|
Back to top |
|
|
Unique
New User
Joined: 10 Jul 2007 Posts: 24 Location: Blore
|
|
|
|
&T is the select value in my panel
My panel is
)ATTR
@ TYPE(INPUT) INTENS(LOW)
)BODY
%PANEL1 -----------------
+
+
+ !Select the option %===>@T+
+
)PROC
VER(&T,NB,list,1,2,3)
&ZSEL = TRANS(TRUNC(&T,'.')
1,'CMD(%REXX1)'
2,'CMD(%REXX2)'
' ',' '
*,'?' ) |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
Unique
New User
Joined: 10 Jul 2007 Posts: 24 Location: Blore
|
|
|
|
Hi,
This is how i fixed it.
In the panel ,i have changed
&ZSEL = TRANS(TRUNC(&T,'.')
1,'R1'
2,'R2'
)
In the Rexx ,after display , i have coded
"VGET &ZSEL SHARED"
"Address tso"
IF ZSEL = 'R1' then "REXX1"
ELSE "REXX2"
Suggestions welcome |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
This original panel definition:
)ATTR
@ TYPE(INPUT) INTENS(LOW)
)BODY
%PANEL1 -----------------
+
+
+ !Select the option %===>@T+
+
)PROC
VER(&T,NB,list,1,2,3)
&ZSEL = TRANS(TRUNC(&T,'.')
1,'CMD(%REXX1)'
2,'CMD(%REXX2)'
' ',' '
*,'?' )
worked fine for me. My exec looks like this:
Code: |
/* REXX */
"ISPEXEC LIBDEF ISPPLIB DATASET ID(ISPPLIB) STACK"
"ISPEXEC SELECT PANEL(panelname)"
"ISPEXEC LIBDEF ISPPLIB"
|
|
|
Back to top |
|
|
Unique
New User
Joined: 10 Jul 2007 Posts: 24 Location: Blore
|
|
|
|
No luck.. |
|
Back to top |
|
|
|