Hi,
As far as I know there isn't any automated way of removing user profiles from the job scheduler. If there was - how would it work?
The user profile associated with the job schedule entry may be necessary to grant certain authorities for the scheduled job. If the user profile is removed, and you change the scheduled job to use another profile, your job may no longer work correctly. I think this is something that will almost always need manual intervention to check that the scheduling is correctly assigned to another profile.
Regards,
Martin Gilbert.
Last Wiki Answer Submitted: March 12, 2009 11:05 am by Gilly40023,625 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Job schedule entries live in QUSRSYS/QDFTJOBSCD, type *JOBSCD. The system provides APIs to access this object. It would require a bit of programming to build a utility to do what you want.
Check out the user written command CPYJOBSCDE published in the trade jouranls a few years ago. It will give you an idea of what would be required. It may have been created originally by the TAATOOLS guy.
I do know that when you delete a user profile you do have some options on changing ownership of objects that user owns. I have no idea on what will happen with job scheduler entries – and the user does not “own” them. . Gonna have to play with that one.
Job schedule entries live in QUSRSYS/QDFTJOBSCD, type *JOBSCD. The system provides APIs to access this object. It would require a bit of programming to build a utility to do what you want.
Check out the user written command CPYJOBSCDE published in the trade jouranls a few years ago. It will give you an idea of what would be required. It may have been created originally by the TAATOOLS guy.
Interesting question –
I do know that when you delete a user profile you do have some options on changing ownership of objects that user owns. I have no idea on what will happen with job scheduler entries – and the user does not “own” them. . Gonna have to play with that one.
Regards
Mike