Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
)PROC command explanation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
Paul1983

New User


Joined: 08 Jul 2008
Posts: 33
Location: bangy

PostPosted: Fri Jul 25, 2008 4:09 pm    Post subject: )PROC command explanation
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
References
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3168
Location: italy

PostPosted: Fri Jul 25, 2008 4:15 pm    Post subject: Reply to: )PROC command explanation
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
Moved: Fri Jul 25, 2008 4:15 pm by enrico-sorichetti From CLIST & REXX to TSO/ISPF
Paul1983

New User


Joined: 08 Jul 2008
Posts: 33
Location: bangy

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

Thanks for the information

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

Senior Member


Joined: 01 Sep 2006
Posts: 536
Location: work

PostPosted: Fri Jul 25, 2008 9:33 pm    Post subject: Reply to: )PROC command explanation
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1