CL Command Reference - CHGACTSCDE

CL Command List > CHGACTSCDE Reference

Description:

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.


Examples:

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.