HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using spaces

HLASM Language Reference
SC26-4940-06

One or more spaces are used to separate the fields in a model statement from each other. Spaces cannot be generated inside a field in order to delimit another field. However, spaces in a combined operand-remarks field can be generated to separate these two fields. Note that if the generated operand field is part of a macro instruction, the entire string (including spaces) is passed as an operand.

MACRO 
&PARMTAG PARMCMD 
&PARMOPC SETC 'LA 1,=C''PARAMETER HEADER>>>'' PARAMETER HEADER' .* GENERATE LA INSTRUCTION USING R1 
&PARMTAG &PARMOPC MEND 

Executing this macro would generate the following:

PARMLIST PARMCMD 
+PARMLIST LA 1,=C'PARAMETER HEADER>>>' PARAMETER HEADER 

Also notice how this correct example contains a remark field encoded within the operand as permitted by the rules governing the use of spaces.

Both examples also supply a number of spaces in the operand field in a character literal string. This is valid since a literal string does not cross field boundaries.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014