This is a method for using system symbolics in the clist that calls ISHELL 
(actually REXX) 

clist   = "SYSX.ZOS.BASE."mvsvar('symdef','zosver')".SBPXEXEC"   
ispmlib = "SYSX.ZOS.BASE."mvsvar('symdef','zosver')".SBPXMENU"   
ispplib = "SYSX.ZOS.BASE."mvsvar('symdef','zosver')".SBPXPENU"   
isptlib = "SYSX.ZOS.BASE."mvsvar('symdef','zosver')".SBPXTENU"   
ADDRESS TSO     "ALTLIB ACT APPL(CLIST) DA('"clist"')"           
ADDRESS ISPEXEC "LIBDEF ISPMLIB DATASET ID('"ispmlib"') STACK"   
ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET ID('"ispplib"') STACK"   
ADDRESS ISPEXEC "LIBDEF ISPTLIB DATASET ID('"isptlib"') STACK"   
address tso      "OMVS CONVERT((BPXFX211))"                      

the symbol zosver lives in parmlib IEASYMxx member

so instead of 
SET &TEST1 = &STR(&LPARNAME.)
Try 
SET 

.
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Seymour J Metz
Sent: Tuesday, May 13, 2025 10:59 PM
To: [email protected]
Subject: Re: CLIST Question

A leading & indicate a parameter, function, operator or variable. System 
symbols are not part of the CLIST language; you need to use a predefined CLIST 
function to retrieve them.

&STR() and &NSTR() are quoting operators.

Most things are easier in REXX.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List on behalf of Steve Beaver
Sent: Tuesday, May 13, 2025 2:33 PM
To: [email protected]
Subject: CLIST Question


External Message: Use Caution


I am attempting to use a SYSTEM SYMBOL in a CLIST and its not

Resolving



SET &TEST1 = &STR(&LPARNAME.)



What am doing wrong ?








----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN


שימו לב! הודעה זו מקורה מחוץ למשרד החינוך. אם אינכם מכירים בוודאות את השולח, 
אין ללחוץ על קישורים ו\או קבצים מצורפים בהודעה זו. ויש לדווח עליה כמייל חשוד.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to