18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SWITCH.TO (SWT)<br />

Host <strong>LINC</strong> implementation of SWITCH.TO; assumes the disengagement of one <strong>LINC</strong><br />

System and the engagement of another, and does not involve the shutdown of either<br />

system. The LDA implementation cannot avoid closing down one system before<br />

engaging the other. Therefore, it cannot be assumed that STARTUP logic has been<br />

executed in LDA.<br />

Runtime Requirements<br />

For an MCP based <strong>LINC</strong> System<br />

To use this command on MCP based target hosts, you must install a COMS processing<br />

item, such as TPTOMARC, for the MARCINPUT agenda. For more details, see your MCP<br />

Based <strong>LINC</strong> Installation and Configuration Guide.<br />

If you switch to an invalid system name, your originating screen is displayed. A message<br />

informs you that the system you were attempting to switch to is not available.<br />

For an OS 2200 based <strong>LINC</strong> System<br />

You can use this command to switch to another <strong>LINC</strong> System. If you are switching from a<br />

System running with PowerClient, and the other <strong>LINC</strong> System is not generated for use with<br />

PowerClient, the SWITCH.TO; command will fail and you will be signed off.<br />

For a UNIX <strong>LINC</strong> System<br />

Define the environment variables database_DIR and database_ENV. These variables can<br />

be defined for each user, for all users of a <strong>LINC</strong> System, or for all users. See your UNIX<br />

<strong>LINC</strong> Administration and Operations Guide for details of environment variables.<br />

If you attempt to switch to an invalid system name, you will be returned to your originating<br />

screen if you switch without a BYE command, or logged off if you switch with a BYE<br />

command. A message is displayed informing you of the unavailability of the system you<br />

were attempting to switch to.<br />

Runtime Transaction Flow<br />

The effects of using the SWITCH.TO; command on transaction flow are as follows.<br />

$ The SWITCH.TO; command takes effect at the end of the Ispec Logic. This is similar to<br />

the RECALL; command.<br />

$ On execution of the command, GLB.ERROR is set to five asterisks (*****).<br />

$ All logic following the SWITCH.TO; command is processed.<br />

$ If multiple SWITCH.TO; and RECALL; commands are executed in the same Ispec, only<br />

the last SWITCH.TO; or RECALL; command executed is actioned.<br />

$ GLI, OFFLINE, external Automatic Entry (HUB), and OLTP transactions ignore this<br />

command.<br />

v 1-249

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!