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.

&SYSOPT_DBCS System Variable Symbol<br />

MACRO<br />

OUTER<br />

DC A(&SYSNEST) Statement 1<br />

INNER1 Statement 2<br />

INNER2 Statement 3<br />

MEND<br />

MACRO<br />

INNER1<br />

DC A(&SYSNEST) Statement 4<br />

INNER2 Statement 5<br />

MEND<br />

MACRO<br />

INNER2<br />

DC A(&SYSNEST) Statement 6<br />

MEND<br />

--------------------------------------------------------------------<br />

OUTER Statement 7<br />

+ DC A(1)<br />

+ DC A(2)<br />

+ DC A(3)<br />

+ DC A(2)<br />

Statement 7 is in open code. It calls the macro OUTER. &SYSNEST is assigned a<br />

value of 1 which is substituted in statement 1.<br />

Statement 2, within the macro definition of OUTER, calls macro INNER1. The value<br />

assigned to &SYSNEST is incremented by 1. The value 2 is substituted for<br />

&SYSNEST in statement 4.<br />

Statement 5, within the macro definition of INNER1, calls macro INNER2. The value<br />

assigned to &SYSNEST is incremented by 1. The value 3 is substituted for<br />

&SYSNEST in statement 6.<br />

When the macro INNER2 exits, the value assigned to &SYSNEST is decremented by<br />

1. The value of &SYNEST is 2.<br />

When the macro INNER1 exits, the value assigned to &SYSNEST is decremented by<br />

1. The value of &SYSNEST is 1.<br />

Statement 3, within the macro definition of OUTER, calls macro INNER2. The value<br />

assigned to &SYSNEST is incremented by 1. The value 2 is substituted for<br />

&SYSNEST in statement 6.<br />

&SYSOPT_DBCS System Variable Symbol<br />

You can use &SYSOPT_DBCS to determine if the DBCS assembler option was<br />

supplied for the assembly of your source module. &SYSOPT_DBCS is a Boolean<br />

system variable symbol, and has a global scope.<br />

If the DBCS assembler option was specified, &SYSOPT_DBCS is assigned a value<br />

of 1. If the DBCS assembler option was not specified, &SYSOPT_DBCS is<br />

assigned a value of 0.<br />

284 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!