Mainframe Commands
RTC (Real-time Clock)
RTC (Real-time Clock)
Command
:RTC <day>,<month>,<year>,<hour>,<minute>,<second>
The real-time clock command allows you to set the real-time clock to the
current date and time.
integer from 1 to 31
<day>
integer from 1 to 12
<month>
integer from 1990 to 2089
<year>
integer from 0 to 23
<hour>
integer from 0 to 59
<minute>
integer from 0 to 59
<second>
Example
This example sets the real-time clock for 1 January 1992, 20:00:00 (8 PM).
OUTPUT XXX;":RTC 1,1,1992,20,0,0"
Query
:RTC?
The RTC query returns the real-time clock setting.
Returned Format
[:RTC] <day>,<month>,<year>,<hour>,<minute>,<second>
Example
OUTPUT XXX;":RTC?"
10–20