LOGTO Command

The LOGTO command is used to log to another account, giving quick access to files and programs located there.

Format

LOGTO account  [,password]

Parameter(s)

account

Name of the account.

password

Password defined for account. If a password is required, the system prompts for it if it is not supplied in the LOGTO command line.

Description

When you LOGTO another account, you are automatically logged off the account you were using, and the following statistics about the session that was just completed are displayed:

Connect Time

Number of minutes the session lasted.

CPU

Amount of CPU units used during the session in tenths of a CPU second.

LPTR Pages

Number of line printer pages generated during the session.

When you log to a new account, the command stack for the process you are working on is retained. Any printer assignments set by the SP-ASSIGN command are lost, as are any attached tape devices.

Logging to Another Account

The following example accesses the account PAYABLES (with the password XYZ) from the current account:

>WHO

2 RECEIVABLES

 

>LOGTO PAYABLES,XYZ

 

[] Connect time= 77 mins.; CPU= 34 units; LPTR pages= 0     []

 

>WHO

2 PAYABLES

In the above example, 2 is the process number, and RECEIVABLES is the name of the original account. After executing the LOGTO command, the account is changed to PAYABLES. The process number remains unchanged.