22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

&SYSDATE System Variable Symbol<br />

Example:<br />

2328<br />

Notes:<br />

1. The date corresponds to the date printed in the page heading of listings and<br />

remains constant for each assembly.<br />

2. The value of the type attribute of &SYSDATC (T'&SYSDATC) is always N.<br />

3. The value of the count attribute (K'&SYSDATC) is always 8.<br />

&SYSDATE System Variable Symbol<br />

Use &SYSDATE to obtain the date, in standard format, on which your source<br />

module is assembled. &SYSDATE has a global scope.<br />

The value of &SYSDATE is an 8-character string in the format:<br />

MM/DD/YY<br />

where:<br />

MM<br />

DD<br />

YY<br />

Example:<br />

6/11/4<br />

Notes:<br />

is a two-digit field that gives the month of the year. It has a value between<br />

01 and 12, inclusive.<br />

is a two-digit field that gives the day of the month. It has a value between<br />

01 and 31, inclusive. It is separated from MM by a slash.<br />

is a two-digit field that gives the year of the century. It has a value between<br />

00 and 99, inclusive. It is separated from DD by a slash.<br />

1. The date corresponds to the date printed in the page heading of listings and<br />

remains constant for each assembly.<br />

2. The value of the type attribute of &SYSDATE (T'&SYSDATE) is always U.<br />

3. The value of the count attribute (K'&SYSDATE) is always 8.<br />

&SYSECT System Variable Symbol<br />

Use &SYSECT in a macro definition to generate the name of the current control<br />

section. The current control section is the control section in which the macro<br />

instruction that calls the definition appears. You can't use &SYSECT in open code.<br />

The local-scope system variable symbol &SYSECT is assigned a read-only value<br />

each time a macro definition is called.<br />

The value assigned is the symbol that represents the name of the current control<br />

section from which the macro definition is called. Note that it is the control section<br />

in effect when the macro is called. A control section that has been initiated or<br />

continued by substitution does not affect the value of &SYSECT for the expansion<br />

of the current macro. However, it may affect &SYSECT for a subsequent macro<br />

call. Nested macros cause the assembler to assign a value to &SYSECT that<br />

Chapter 7. How to Specify Macro Definitions 267

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

Saved successfully!

Ooh no, something went wrong!