The time zone is determined by the databyte of the entry key which invokes CLOCK. A value of 8 indicates the 8th time zone past UT (Universal Time, same as Greenwich Mean Time) and is thus particularly useful for Pacific Standard Time. (9 for PDT.)
If TOD_clock is an 8 byte character string in the form of the system time of day clock, the value will be converted according to the following specifications. If TOD_clock is omitted from the parameter string, the current value is fetched from the system clock, and interpreted.
CLOCK(1,(8,TOD_clock);==>c,((4,time_of_day),(4,day_of_year));) is the same, except that the time_of_day is in units of 1/100 of a second.
CLOCK(2,(8,TOD_clock);==>c,((4,time_of_day),(4,day_of_year));) is the same, except that the time_of_day is in the form HHMMSShh in packed decimal and where HH is hours, MM is minutes, and SShh is seconds and hundredths.
CLOCK(3,(8,TOD_clock);==>c,((8,time_of_day_clock),(4,day_of_year) ); )is the same, except that time_of_day_clock contains clock ticks (i.e. bit 12 = 1 microsecond) since midnight.
CLOCK(4,(8,TOD_clock);==>c,((8,time_of_day_clock),(4,day_of_year) ); ) is the same, except that time_of_day_clock contains clock ticks {i.e., bit 12 = 1 microsecond} since 00:00:00 January 1,1900 UT.
CLOCK(5,(8,TOD_clock);==>c,(31,time_and_date);) returns an EBCDIC string in the form MM/DD/YYHH:MM:SS.hhZZZwwwwwwwww where MDYHMSh are all defined above. ZZZ is the time zone {e.g., PST}, left-justified and padded with blank if necessary. wwwwwwwww is the name of the day of the week {in English} left-justified with trailing blanks.
For 0<=n<=5, CLOCK(100+n;...) returns the same values in UT instead of local time.
CLOCK(1000,(4,timezone);==>c,;TIMEX1) produces a new CLOCK key with the designated time zone, and c=0 if timezone is less than 25. If timezone is greater or equal to 25, c will be 1, and the system default time zone will be used in place of timezone for the new TIMEX1 key.
WAITC(0; ==> c;WAIT) "Create WAIT Key"
WAITC(kt+4; ==> 0;) destroys the multiplexor and restarts all waiting domains with a return code of kt+1.
WAIT(2,(8,INTVAL); ==> 0;)
WAIT(kt+4; ==> 0;)