Operating System - OpenVMS
1752707 Members
5408 Online
108789 Solutions
New Discussion

Can I change a batch job's username?

 
Rich Bordewick
Advisor

Can I change a batch job's username?

Hi,

 

I need to change a username on several batch jobs.  I can't find a dcl command to do this.  Is this possible?

 

Thanks,

RB

3 REPLIES 3
Hein van den Heuvel
Honored Contributor

Re: Can I change a batch job's username?

I don't think so.

 

You'll just have to resubmit.

How were teh jobs created? Can you dele, fix the creator and re-create?

 

If there are less than 10 or so, just do you SHOW QUEUE/ALL and use that.

 

For more jobs you may want to use a script based on F$GETQUI looking for jobs for the username you did not want and pick up ALL the attributes and parameters, delete  and re-submit under the rigth username.

Check out :  $ help lexi f$getqui examamples

 

 

Good luck!

Hein

Rich Bordewick
Advisor

Re: Can I change a batch job's username?

that is what I thought too...  I have 5 jobs to change.

 

Thanks much,

RB

John Gillings
Honored Contributor

Re: Can I change a batch job's username?

The attachment is an extract from a larger procedure, the purpose of which is to search for and resubmit jobs where the target procedure has been updated. Since it uses DISPLAY_ENTRY, it will only work for jobs owned by the current process. Syntax is

 

  $ @RESUBMIT <entry> <new filespec>

 

Another restriction is it can only handle jobs with a single target file. Possibly a "feature" (but really just a consequence of DCL being incapable of returning a string from a subroutine), the job attributes are defined as global symbols.

A simple matter to modify the code to change /USER

 

 

A crucible of informative mistakes