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

CMD not working in )PROC section


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Unique

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Sun Aug 19, 2007 8:58 pm
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Aug 19, 2007 9:55 pm
Reply with quote

What's in &T? Is it your command variable?

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

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Sun Aug 19, 2007 10:03 pm
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 20, 2007 12:42 am
Reply with quote

If you have z/OS 1.7, you can try the Panel Trace Command(ISPDPTRC).

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

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Mon Aug 20, 2007 11:45 am
Reply with quote

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

Global Moderator


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

PostPosted: Thu Aug 23, 2007 6:24 pm
Reply with quote

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

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Thu Aug 30, 2007 1:17 pm
Reply with quote

No luck.. icon_sad.gif
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
Search our Forums:

Back to Top