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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SWITCH.TO (SWT)<br />

SWITCH.TO (SWT)<br />

The SWITCH.TO; command enables you to transfer directly to another system by using<br />

<strong>LINC</strong> logic. The other system can be:<br />

$ Another <strong>LINC</strong> System<br />

$ Another <strong>LINC</strong> System running PowerClient<br />

$ A non-<strong>LINC</strong> System in an MCP or OS 2200 environment. For example, an MCP based<br />

CANDE session, or an OS 2200 based 3GL System<br />

$ A default UNIX or MCP based screen; for example, a Logon or Logoff screen<br />

Use this command if you want to perform a certain function outside your current <strong>LINC</strong><br />

System without having to go through the procedure of exiting from the <strong>LINC</strong> System and<br />

signing on to another <strong>LINC</strong> System or non-<strong>LINC</strong> System.<br />

Once you have completed your task in the other system, you can then switch back to<br />

where you were, or to a default screen.<br />

The SWITCH.TO; command can be used in MCP and OS 2200 based <strong>LINC</strong> Systems, and in<br />

UNIX <strong>LINC</strong> Systems that are using <strong>LINC</strong> Server mode. See your UNIX <strong>LINC</strong><br />

Administration and Operations Guide for details of <strong>LINC</strong> Server mode for UNIX <strong>LINC</strong><br />

Systems.<br />

On OS 2200 based <strong>LINC</strong> Systems, you can use the INHERIT; command option to pass the<br />

terminal type, language, usercode, and partition (if executed from PowerClient) to the<br />

destination system, if that destination system is a <strong>LINC</strong> System. On UNIX and MCP based<br />

<strong>LINC</strong> Systems, you cannot pass these values.<br />

The SWITCH.TO; command is not available in Reports. It sets GLB.ERROR to five asterisks<br />

(*****). The command is ignored in LDA Run Time.<br />

Use of this command with OLTP is described in your <strong>LINC</strong> Generate Operations Guide.<br />

LDA Restrictions and Limitiations<br />

The functionality of the SWITCH.TO; command in LDA differs from host <strong>LINC</strong>, and has the<br />

following restrictions and limitations:<br />

$ The new Business Segment must reside in the same Repository as the calling Business<br />

Segment.<br />

$ When the SWITCH.TO; command is executed in LDA Run Time, the current LDA<br />

session is closed and a new session is opened for the called Business Segment. This<br />

may take a few seconds, because the .FRM file must be recreated for the called Ispec.<br />

$ STARTUP and CLOSEDOWN Global Logics cannot be invoked automatically in LDA.<br />

1-248 v

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

Saved successfully!

Ooh no, something went wrong!