Discussion:
ISPF Panel and &sysname
(too old to reply)
itzmainframe
2017-10-02 21:26:44 UTC
Permalink
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
Permalink
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
Permalink
Thank you - that works! Now I can specify system specific clists! :)
Loading...