SYSPARM

Read syntax diagramSkip visual syntax diagramSYSPARM()SYSPARM( string)SYSPARMQ( 'string')
Default
The &SYSPARM system variable is set to NULL.
Abbreviations
None
Restrictions
You cannot specify this option on *PROCESS statements.
string
Specifies the character string the assembler assigns to the &SYSPARM system variable symbol. The character string is up to 255 characters in length. Any character can be included in the string, subject to the rules for building character strings defined in the HLASM Language Reference.
On a z/OS® or z/VSE® invocation parameter, if the string includes spaces, commas, or parentheses, it must be enclosed in apostrophes. Any parentheses inside the string must be balanced. You must use two apostrophes to represent a single apostrophe, and two ampersands to represent a single ampersand. For example:
PARM='OBJECT,SYSPARM((&&((AM)),''EO).FY)'
assigns the value (&AM,'EO).FY to &SYSPARM.

On z/OS and z/VSE, JCL restrictions limit the length of the SYSPARM value. When you call the assembler from a problem program (dynamic invocation), you can specify a SYSPARM value up to 255 characters long. The ASMAOPT file (ASMAOPT options) also supports a SYSPARM value up to 255 characters long.

On CMS, you can specify SYSPARM(?). This causes the assembler to issue the following message at your terminal:
ENTER SYSPARM:

In response to this message you can enter up to 255 characters. To specify a SYSPARM value of ?, you must specify SYSPARM(?) and enter ? at the terminal prompt.

The option SYSPARMQ may be specified instead of SYSPARM to indicate that the specified value is enclosed in single quotes, which are not part of the value. This allows spaces to be included in the value, and any other characters (including unmatched parentheses). In this case, any embedded quotes must be doubled. The value may consist of multiple quoted strings separated by commas, to make it easy to code a continued value in an ASMAOPT external options file (where a comma is normally inserted between each line of options).