NetBatch Manual
Commands
NetBatch Manual—522460-004
6-75
CHANGEUSER Command
•
If you specify an incorrect user ID or password, this message appears:
0300-E USER not found or incorrect password for LOGON
BATCHCOM delays the return of its prompt for one minute if you enter an incorrect
user ID or password three times in succession.
•
BATCHCOM does not store the CHANGEUSER command in its history buffer.
•
You can disable the CHANGEUSER command with the NBFLAGS procedure. For
details, see on page 2-3.
Examples
•
This example shows use of the CHANGEUSER command to log on the super ID
(255,255) and enable execution of the SHUTDOWN SCHEDULER command. It
also shows how the CHANGEUSER command does not change the user logged
on to the TACL environment.
37> WHO .
.
Userid: 133,2 Username: NB.USER Security: "NCNC"
38> BATCHCOM $SCHD
1} SHUTDOWN SCHEDULER
2132-E Your user code does not give you access to SHUTDOWN
SCHEDULER
2} CHANGEUSER 255,255 psswrd
2} SHUTDOWN SCHEDULER
Scheduler shutting down
3} EXIT
39> WHO .
.
Userid: 133,2 Username: NB.USER Security: "NCNC"
•
This example shows the result of a CHANGEUSER command that is the first of
two semicolon-separated commands. The command fails because BATCHCOM
interprets all text following the specified user ID as the user’s password. The
example then shows BATCHCOM successfully executing the commands after their
entry on separate lines. The example also shows the successful execution of a
CHANGEUSER command entered last in a command series.
8} CHANGEUSER 255,205 psswrd1; SUBMIT JOB X
-^-0300-
E USER not found or incorrect password for LOGON
8} CHANGEUSER 255,205 psswrd1
8} SUBMIT JOB X
Job X job number 175 submitted
9} SUBMIT JOB Y; CHANGEUSER 205,70 psswrd2
Job Y job number 176 submitted