TOD
You can specify the values to be formatted as a hexadecimal value, or you can specify an expression, that when evaluated within the context of the specified address space, denotes the address of the TOD value to be formatted. Optionally, you can request that the value be converted from GMT to local time or from local time to GMT.
Syntax
The parameters are defined as follows:
Parameter | Description |
---|---|
expression | expression can be any valid expression as described in the section titled Expressions. It can also be an eight- or four-byte hexadecimal literal value enclosed within quotation marks and prefixed with an X. |
LOCAL | (optional) assumes that the value is in GMT and is to be converted to local time |
GMT | (optional) assumes that the value is in local time and is to be converted to GMT |
asi | (optional) denotes the address space that contains the TOD value addressed by the expression If omitted, the address space implied by the expression (if any) will be used. If no address space is expressly specified or implied, the user's address space is used. |
Example 1
Format and display the date and time the JES2 address space was initiated. Convert the time to LOCAL time.
TOD,ASCB+130,JES2,LOCAL
AMTTD2I Wednesday, May 12, 2010 Local time
AMT001A SYSPROG
Example 2
Format and display the hexadecimal value X' C45B3A532692C383' in date and time format.
tod,X'C45B3A532692C383'
AMTTD2I Thursday, June 18, 2009 (GMT assumed)
Example 3
Convert to local time, format and display the hexadecimal value X' C45B3A532692C383' in date and time format.
tod X'C45B3A532692C383',local
AMTTD2I Thursday, June 18, 2009 Local time
AMT001A SYSPROG