$TsoExit: Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 2: | Line 2: | ||
<span class="pageSubtitle"><section begin="desc" />Terminate TSO full screen interface session, stack command<section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />Terminate TSO full screen interface session, stack command<section end="desc" /></span> | ||
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. | <p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $TsoExit function.</p> | ||
This function requests that the TSO full screen interface terminate the session and optionally stacks a command to be executed upon termination.<blockquote> This function requires the special version of the TSO full screen interface to ''Model 204'' that is distributed by Sirius Software. </blockquote> | This function requests that the TSO full screen interface terminate the session and optionally stacks a command to be executed upon termination.<blockquote> This function requires the special version of the TSO full screen interface to ''Model 204'' that is distributed by Sirius Software. </blockquote> | ||
Line 9: | Line 9: | ||
The first argument is a string containing the name of the command to be invoked in the TSO address space. This is an optional argument; and if it is null or missing, no command is stacked. | The first argument is a string containing the name of the command to be invoked in the TSO address space. This is an optional argument; and if it is null or missing, no command is stacked. | ||
==Syntax== | ==Syntax== | ||
<p class="syntax"><section begin="syntax" /> %RESULT = $TsoExit(command) | <p class="syntax"><section begin="syntax" /> %RESULT = $TsoExit(command) | ||
Line 15: | Line 16: | ||
</p> | </p> | ||
<p class="caption">%RESULT is set to a completion code.</p> | <p class="caption">%RESULT is set to a completion code.</p> | ||
<p class="code"> | <p class="code"> | ||
0 - Function successful | |||
-1 - Connection broken | |||
-4 - Not a TSO full screen IODEV (IODEV 11) | |||
-8 - Incorrect version of TSO interface | |||
-20 - LOUTPB too small | -20 - LOUTPB too small | ||
</p> | </p> | ||
Line 25: | Line 27: | ||
</p> | </p> | ||
The following program requests the TSO full screen interface to terminate its session with Model 204 and then issue the 'LOGOFF' command in the TSO address space. | |||
<p class="code"> B | <p class="code"> B | ||
%RC = $TsoExit( 'LOGOFF' ) | %RC = $TsoExit( 'LOGOFF' ) | ||
END | END | ||
</p> | </p> | ||
<ul class="smallAndTightList"> | |||
<li>[[Japanese $Functions]] | |||
</ul> | </ul> | ||
<p class="caption">Products authorizing $TsoExit | <p class="caption">Products authorizing $TsoExit | ||
</p> | </p> | ||
[[Category:$Functions|$TsoExit]] | [[Category:$Functions|$TsoExit]] |
Revision as of 20:55, 8 February 2011
<section begin="desc" />Terminate TSO full screen interface session, stack command<section end="desc" />
Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $TsoExit function.
This function requests that the TSO full screen interface terminate the session and optionally stacks a command to be executed upon termination.
This function requires the special version of the TSO full screen interface to Model 204 that is distributed by Sirius Software.
The $TsoExit function accepts one argument and returns a numeric completion code.
The first argument is a string containing the name of the command to be invoked in the TSO address space. This is an optional argument; and if it is null or missing, no command is stacked.
Syntax
<section begin="syntax" /> %RESULT = $TsoExit(command) <section end="syntax" />
0 - Function successful -1 - Connection broken -4 - Not a TSO full screen IODEV (IODEV 11) -8 - Incorrect version of TSO interface -20 - LOUTPB too small
The following program requests the TSO full screen interface to terminate its session with Model 204 and then issue the 'LOGOFF' command in the TSO address space.
B %RC = $TsoExit( 'LOGOFF' ) END