Where allowed to run: Compiled CL program or interpreted REXX (*BPGM *IPGM *BREXX *IREXX) Threadsafe: No |
Parameters Examples Error messages |
The Retrieve Power On/Off Schedule Entry (RTVPWRSCDE) command retrieves a power on/off schedule entry value for use in a CL or REXX program. The value is returned (copied) to the specified CL variable in the program.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DAY | Day | Date, *TODAY, *SUN, *MON, *TUE, *WED, *THU, *FRI, *SAT | Optional, Positional 1 |
PWRONTIME | CL var for PWRONTIME (6) | Character value | Optional |
PWROFFTIME | CL var for PWROFFTIME (6) | Character value | Optional |
DAYDESC | CL var for DAYDESC (38) | Character value | Optional |
MSGITV | CL var for MSGITV (2 0) | Decimal number | Optional |
Top |
Specifies the day for which you are retrieving a power on/off schedule entry.
Top |
Specifies the name of the CL variable that receives the power on time. The variable named has a minimum length of 6 characters. The special value *NONE or the time in the format hhmmss, where hh = hours,mm = minutes, and ss = seconds, is returned.
Top |
Specifies the name of the CL variable that receives the power off time. The variable named has a minimum length of 6 characters. The special value *NONE or the time in the format hhmmss, where hh = hours,mm = minutes, and ss = seconds, is returned.
Top |
Specifies the name of the CL variable that receives the day description value. The day description is an explanation of the power on/off schedule for that date. The variable named has a minimum length of 38 characters.
Top |
Specifies the name of the CL variable that receives the message interval value. The message interval is the number of minutes before the scheduled power off that a message is sent to all work stations warning users of the power off. The variable named has a minimum length of 2 characters.
Top |
Example 1: Retrieving Today's Schedule Entry
DCL VAR(&ONTIME) TYPE(*CHAR) LEN(6) DCL VAR(&OFFTIME) TYPE(*CHAR) LEN(6) RTVPWRSCDE DAY(*TODAY) PWRONTIME(&ONTIME) + PWROFFTIME(&OFFTIME)
This command retrieves the power on and off times for today.
Example 2: Retrieving Tuesday's Schedule Entry
DCL VAR(&ONTIME) TYPE(*CHAR) LEN(6) DCL VAR(&OFFTIME) TYPE(*CHAR) LEN(6) RTVPWRSCDE DAY(*TUE) PWRONTIME(&ONTIME) PWROFFTIME(&OFFTIME)
This command retrieves the power on and power off times for Tuesday's.
Top |
*ESCAPE Messages
Top |