$TsoExit: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 7: Line 7:


The <var>$TsoExit</var> function accepts one argument and returns a numeric completion code.  
The <var>$TsoExit</var> 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==
==Syntax==
Line 14: Line 12:
<section end="syntax" /></p>
<section end="syntax" /></p>


===Status codes===
where the <var class="term">command</var> argument is a string containing the name of the command to be invoked in the TSO address space. This is an optional argument; if it is null or missing, no command is stacked.
<var calss="term">%result</var> is set to a status code:
 
<var class="term">%result</var> is set to a status code:


<p class="code">  0 - Function successful
<p class="code">  0 - Function successful

Revision as of 20:03, 24 October 2012

Terminate TSO full screen interface session, stack command

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.

Note: 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.

Syntax

<section begin="syntax" />%result = $TsoExit(command) <section end="syntax" />

where the command argument is a string containing the name of the command to be invoked in the TSO address space. This is an optional argument; if it is null or missing, no command is stacked.

%result is set to a status 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

Example

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

Products authorizing $TsoExit