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

)PROC command explanation


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

New User


Joined: 08 Jul 2008
Posts: 37
Location: bangy

PostPosted: Fri Jul 25, 2008 4:09 pm
Reply with quote

Could you please explain the meaning of the following commands given in )PROC section of a panel.

)PROC
&zsel = TRANS(TRUNC(&zcmd ,'.')

AR,'CMD(%SW2 AR)'

Thanks,
Paul
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Fri Jul 25, 2008 4:15 pm
Reply with quote

the issue is not rexx/clist related...

here is a pointer to the ISPF bookshelf
Back to top
View user's profile Send private message
Paul1983

New User


Joined: 08 Jul 2008
Posts: 37
Location: bangy

PostPosted: Fri Jul 25, 2008 4:21 pm
Reply with quote

Thanks for the information

Thanks,
Paul
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2624
Location: Silicon Valley

PostPosted: Fri Jul 25, 2008 9:33 pm
Reply with quote

Say the user types ar.pv...

Code:
&zsel = TRANS(TRUNC(&zcmd ,'.')
AR,'CMD(%SW2 AR)'


The ar.pv command is truncated at the period and the prefix is used, like a case statement. The panel syntax is correct for the panel, but the effect is to work something like this:
Code:
Select
When (zsel = 'AR') Then Address ISPEXEC "SELECT CMD(%SW2 AR)"
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts c all command JCL & VSAM 11
No new posts variable in library name within a PROC. JCL & VSAM 11
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:


Back to Top