22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Values in Operands<br />

'QUOTED STRING'<br />

L'SYMBOL<br />

T'SYMBOL<br />

Shift-out (SO) and Shift-in (SI)<br />

If the DBCS assembler option is specified, then SO (X'0E') and SI (X'0F') are<br />

recognized as shift codes. SO and SI delimit the start and end of double-byte data<br />

respectively.<br />

Quoted Strings and Character Strings<br />

A “quoted string” is any sequence of characters that begins and ends with a single<br />

quotation mark (compare with conditional assembly character expressions<br />

described in “Character (SETC) Expressions” on page 371).<br />

Two single quotation marks must be specified inside each quoted string. This<br />

includes substituted single quotation marks.<br />

A “character string” is a sequence of characters, not delimited with quotes. So a<br />

character string is the contents of a quoted string.<br />

Quoted strings can contain double-byte data, if the DBCS assembler option is<br />

specified. The double-byte data must be bracketed by the SO and SI delimiters.<br />

Only valid double-byte data is recognized between the SO and SI. The SI may be<br />

in any odd-numbered byte position after the SO. If the end of the operand is<br />

reached before SI is found, then error ASMA23E Unbalanced double-byte<br />

delimiters is issued.<br />

Macro instruction operands can have values that include one or more quoted<br />

strings. Each quoted string can be separated from the following quoted string by<br />

one or more characters, and each must contain an even number of single quotation<br />

marks.<br />

Examples:<br />

''<br />

'L''SYMBOL'<br />

'QUOTE1'AND'QUOTE2'<br />

A'B'C<br />

Attribute <strong>Reference</strong> Notation<br />

You can specify an attribute reference notation as a macro instruction operand<br />

value. The attribute reference notation must be preceded by a space or any other<br />

special character except the ampersand and the single quotation mark. See “Data<br />

Attributes” on page 324 for details about data attributes, and the format of attribute<br />

references.<br />

Examples:<br />

MAC1<br />

MAC1<br />

L'SYMBOL,1+L'AREAL'FIELD<br />

I'PACKED-S'PACKED<br />

Chapter 8. How to Write Macro Instructions 309

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!