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.

&SYSCLOCK System Variable Symbol<br />

&SYSCLOCK System Variable Symbol<br />

Use &SYSCLOCK to obtain the TOD clock date and time at which the macro was<br />

generated, based on Universal Time (GMT).<br />

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

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

The value of &SYSCLOCK is a 26-character string in the format:<br />

YYYY-MM-DD HH:MM:SS.mmmmmm<br />

where:<br />

YYYY<br />

MM<br />

DD<br />

HH<br />

MM<br />

SS<br />

is a four-digit field that gives the year, including the century. It has a value<br />

between 0000 and 9999, inclusive.<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.<br />

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

00 and 23, inclusive.<br />

is a two-digit field that gives the minute of the hour. It has a value<br />

between 00 and 59, inclusive.<br />

is a two-digit field that gives the second of the minute. It has a value<br />

between 00 and 59, inclusive.<br />

mmmmmm is a six-digit field that gives the microseconds within the seconds. It<br />

has a value between 000000 and 999999, inclusive.<br />

Example:<br />

21-6-8 17:36:3 43284<br />

Notes:<br />

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

2. The value of the count attribute (K'&SYSCLOCK) is always 26.<br />

&SYSDATC System Variable Symbol<br />

Use &SYSDATC to obtain the date, including the century, on which your source<br />

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

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

YYYYMMDD<br />

where:<br />

YYYY is four-digit field that gives the year, including the century. It has a value<br />

between 0000 and 9999, inclusive.<br />

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

and 12, inclusive.<br />

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

and 31, inclusive.<br />

266 <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!