The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Problem state and any PSW key. |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN=HASN=SASN |
AMODE: | 24- or 31-bit addressing mode |
ASC mode: | Primary |
Interrupt status: | Enabled for I/O and external interrupts |
Locks: | No locks held |
Control Parameters: | Must be in the primary address space. |
None.
The caller cannot have any enabled, unlocked task (EUT) FRRs established.
Before issuing the TIME macro, the caller does not have to place any information into any register unless using it in register notation for a particular parameter or using it as a base register.
Some callers depend on register contents remaining the same before and after issuing a service. If the system changes the contents of registers on which the caller depends, the caller must save them before issuing the service, and restore them after the system returns control.
None.
The standard form of the TIME macro with LINKAGE=SVC is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede TIME. |
TIME | |
␢ | One or more blanks must follow TIME. |
DEC | Default: DEC |
BIN | stor addr: RX-type address or register (0) or (2) - (12). |
TU | |
MIC,stor addr | |
STCK,stor addr | |
,ZONE=LT | Default: ZONE=LT |
,ZONE=UTC|GMT | Note: This parameter has no meaning if STCK is specified. |
,LINKAGE=SVC | Default: LINKAGE=SVC |
The parameters are explained as follows:
DEC returns the time of day in register 0 as packed decimal digits, without a sign, of the form
BIN returns the time of day in register 0 as an unsigned 32-bit binary number. The low-order bit is equivalent to 0.01 second.
TU returns the time of day in register 0 as an unsigned 32-bit binary number. The low-order bit is approximately 26.04166 microseconds (one timer unit).
MIC returns the time of day in microseconds. The stor addr is the address of an 8-byte area in storage with bit 51 equivalent to one microsecond.
STCK returns the contents of the TOD clock as an unsigned 64-bit binary number where bit 51 is equivalent to one microsecond. The stor addr is the address of an 8-byte area in storage.
The date is returned in register 1 as packed decimal digits of the form
10B
See z/OS MVS System Codes for an explanation and programmer responses for this code.
The only return code from the TIME macro is a zero in register 15 indicating successful completion.
TIME STCK,(2)
TIME DEC,ZONE=LT,LINKAGE=SVC
TIME MIC,OUTAREA
.
.
OUTAREA DS 2F