Discussion:
ISPF Panel and &sysname
Add Reply
itzmainframe
2017-10-02 21:26:44 UTC
Reply
Permalink
Raw Message
I need to execute a system specific clist when an option is selected on the ***@PRIM menu because unique libraries exist for each LPAR. This does not work: 'CMD(CLIST&SYSNAME.)' Is there a way to invoke system specific clists from the ***@PRIM menu?
w***@gmail.com
2017-10-03 08:48:28 UTC
Reply
Permalink
Raw Message
You must use variables known by ISPF like &ZSYSID instead of &SYSNAME. You can build statements using REXX variables and constructs like so:
*REXX (s1,s2)
s1 = "cmd(%echo sysname" mvsvar('sysname')")"
s2 = "cmd(%echo sysname" mvsvar('sysplex')")"
*ENDREXX
&zsel = trans( &zcmd
1,&s1
2,&s2
itzmainframe
2017-10-03 13:45:56 UTC
Reply
Permalink
Raw Message
Thank you - that works! Now I can specify system specific clists! :)
Loading...