Copy User's Jobs When Deleting User

Sort:
You are not authorized to post a reply.
Author
Messages
Kyle Jorgensen
Veteran Member
Posts: 122
Veteran Member

    When you delete a user from security it gives you the option to copy the user's jobs to another user.

    We've found that when we do this the jobs do copy but if the 'departing' user's job had any setup in jobdef (file distribution, csv attributes, etc) the job that gets created for the 'receiving' user is missing all of the jobdef setup.

    Are we doing something wrong, or is this just how it works (which is lousy)?

    Kwane McNeal
    Veteran Member
    Posts: 479
    Veteran Member
      Kyle, it's been a while since I've looked closely at this, but I seem to recall this is the way it works.

      I don't know if it's a bug, or by design. I agree it's lousy, but I think the intent is that each user determines their settings...but that's a wild --- guess on my part
      Greg Moeller
      Veteran Member
      Posts: 1498
      Veteran Member
        You can dump the user's jobs before-hand. I'm not sure if it works any differently though...
        jobdump -d -o Job -v UserName joesmoe > jobdump.dmp 

        And then reload into a new user with
        jobload -c -o Job -m UserName joesmoe newuserid jobdump.dmp 


        I seem to remember now that I'm typing, it should give you better results, but I'm not sure I've tested any with dist groups on them?

        If you want to see what it will do first (to check syntax, etc) leave off the -c on the jobload command.
        mthedford
        Basic Member
        Posts: 8
        Basic Member
          Yes, the jobdump/jobload will bring across all job definition information, however, you may still need to check to see if the target user is setup for any distribution group that is defined in the jobs or there will be errors in the job log when it runs.
          Scott Perrier
          Veteran Member
          Posts: 39
          Veteran Member
            Also take note that when moving the jobs to the new user, if that new user already had that job name redined that this process will overlay it.
            You are not authorized to post a reply.