Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Activation Schedule Entry (CHGACTSCDE) command allows you to make a user profile available for sign on only for a specific period of time on specific days.
If you specify a new schedule for a user profile (use the CHGACTSCDE again for that user), the system replaces that profile's existing schedule with the new information.
When a profile is enabled or disabled, a message will be sent to the message queue of the user who issued the CHGACTSCDE command.
The enable and disable times are set up to occur on the same day. For example, if you specify an enable time of 07:00, a disable time of 18:00, and *MON for the days, the profile is enabled on Monday at 7:00 and disabled on Monday at 18:00. If you wish to span days such that a profile should be enabled Monday at 23:00 and disabled Tuesday at 07:00, you need to specify *ALL for the days. (The profile will be enabled from 23:00 to 07:00 every day.)
To remove a user profile from the file so that it will no longer be enabled and disabled specify ENBTIME(*NONE) DSBTIME(*NONE).
The activation schedule can be displayed with the Display Activation Schedule (DSPACTSCD) command.
Restriction: You must have *ALLOBJ, *SECADM, and *JOBCTL special authorities to use this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
USRPRF | User profile | Name | Required, Positional 1 |
ENBTIME | Enable time | Time, *NONE | Required, Positional 2 |
DSBTIME | Disable time | Time, *NONE | Required, Positional 3 |
DAYS | Days | Single values: *ALL Other values (up to 7 repetitions): *MON, *TUE, *WED, *THU, *FRI, *SAT, *SUN |
Optional |
Top |
This is a required parameter.
The name of the user profile to be activated for a period of time.
Top |
This is a required parameter.
The time on the specified days at which the job to enable the user profile will be submitted.
A profile will not be enabled at its specified time if it has reached the maximum number of not valid sign-on attempts.
Note: Although the time can be specified to the second, the activity involved in submitting a job and the load on the system may affect the exact time at which the job is submitted.
Top |
This is a required parameter.
The time on the specified days at which the job to disable the user profile will be submitted.
Note: Although the time can be specified to the second, the activity involved in submitting a job and the load on the system may affect the exact time at which the job is submitted.
Top |
The days of the week on which the job to enable and/or disable the user profile will be submitted.
You can enter multiple values for this parameter.
Top |
CHGACTSCDE USRPRF(GARRY) ENBTIME('07:00:00') DSBTIME('18:00:00') DAYS(*MON,*TUE,*WED,*THU,*FRI)
This command changes the activation schedule for user profile GARRY. The user profile GARRY will be enabled at 7:00 AM on every Monday, Tuesday, Wednesday, Thursday and Friday, and disabled at 6:00 PM on every Monday, Tuesday, Wednesday, Thursday, and Friday. The user profile will remain disabled over the weekend.
Top |
*ESCAPE Messages
Top |