LOGTO


Switches to the specified user account.

LOGTO account-name

Where account-name is the pseudo account (defined in the SYSTEM File) or, under Unix, the user account to switch to.

NOTES

Execution of this command changes environmental variables differently depending upon the type of account (pseudo or real) and the OS being used, as shown in the table below:

 
Variable Effect of LOGTO
HOME changed to the directory of the specified account
JBCDEV_BIN under Windows, only reset if set prior to LOGTO.  Under Unix pseudo accounts, this is always set.  For Unix accounts, this is not set.
JBCDEV_LIB under Windows, only reset if set prior to LOGTO.  Under Unix pseudo accounts, this is always set.  For Unix accounts, this is not set.
JBCLOGNAME under Windows (and Unix pseudo accounts), set to the name of the account you log to.  With Unix accounts, LOGNAME is set.
JBCOBJECTLIST reset, but only if set prior to LOGTO
JEDIFILEPATH HOME is changed to the directory of the specified account
LOGNAME with Unix accounts, set to the name of the account you LOGTO
PATH jBASE automatically appends %HOME%\bin (or $HOME/bin for Unix systems), so by definition it is changed after LOGTO
PWD same as HOME

For use under Windows, the user must have a valid SYSTEM File entry defined for the command to work.  In addition, this command does not work when it is run from "cmd.exe".

This command does not directly support any options. However, it is possible to specify options specific to the new account's environment via the SYSTEM File entry.

This command cannot be used in the command stream for PH-START.

This command cannot be used in the Primary input buffer of a jCL command.

Example

LOGTO homer

Logs off the current account and into the account "homer".


ACC