$TsoExec: Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 8: | Line 8: | ||
The <var>$TsoExec</var> function accepts four arguments and returns a numeric completion code. | The <var>$TsoExec</var> function accepts four arguments and returns a numeric completion code. | ||
==Syntax== | |||
<p class="syntax"><section begin="syntax" />%result = $TsoExec(clist, parms, in_image, out_image) | |||
<section end="syntax" /></p> | |||
===Syntax terms=== | |||
<table class="syntaxTable"> | |||
<tr><th>%result </th> | |||
<td>Either the completion code from the invoked CLIST or an error code.</td></tr> | |||
<tr><th>clistT</th> | |||
<td>A string containing the name of the CLIST to be invoked in the TSO address space. This is an optional argument; and if it is null or missing, no processing is performed and a completion code of 0 is returned. </td></tr> | |||
<tr><th>parms</th> | |||
<td>A string containing the parameters to be passed to the invoked CLIST. This is an optional argument. </td></tr> | |||
<tr><th>in_image</th> | |||
<td>A string containing the name of an image containing input data for the invoked CLIST. This is an optional argument. </td></tr> | |||
<tr><th>out_image</th> | |||
< | <td>A string containing the name of an image to receive output data from the invoked CLIST. This is an optional argument.</td></tr> | ||
< | </table> | ||
< | |||
===Error codes=== | |||
<var>$TsoExec</var> normally returns the completion code from the invoked CLIST. If there is some error that prevents the CLIST from being invoked, however, an error code is returned to indicate the problem. | <var>$TsoExec</var> normally returns the completion code from the invoked CLIST. If there is some error that prevents the CLIST from being invoked, however, an error code is returned to indicate the problem. | ||
<p class="code"> | <p class="code"> 0 - No CLIST name specified | ||
-1 - Connection broken | |||
-4 - Not a TSO full screen IODEV (IODEV 11) | |||
-8 - Incorrect version of TSO interface | |||
-16 - Image not found | |||
-20 - LOUTPB too small | |||
-28 - CLIST name is too long | -28 - CLIST name is too long | ||
</p> | </p> | ||
The following program invokes a CLIST called < | ==Example== | ||
The following program invokes a CLIST called <code>RUNSAS</code> in the user's TSO address space with a parameter of <code>INDSN(TEMP.SAS.DATA)</code>. | |||
<p class="code"> B | <p class="code">B | ||
%RC = $TsoExec( 'RUNSAS', 'INDSN(TEMP.SAS.DATA)') | |||
END | |||
</p> | </p> | ||
<ul class="smallAndTightList"> | <ul class="smallAndTightList"> |
Revision as of 19:55, 24 October 2012
Invoke CLIST in user's TSO address space
Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $TsoExec function.
This function invokes a CLIST in the user's TSO address space.
Note: This function requires the special version of the TSO full screen interface to Model 204 that is distributed by Sirius Software.
The $TsoExec function accepts four arguments and returns a numeric completion code.
Syntax
<section begin="syntax" />%result = $TsoExec(clist, parms, in_image, out_image) <section end="syntax" />
Syntax terms
%result | Either the completion code from the invoked CLIST or an error code. |
---|---|
clistT | A string containing the name of the CLIST to be invoked in the TSO address space. This is an optional argument; and if it is null or missing, no processing is performed and a completion code of 0 is returned. |
parms | A string containing the parameters to be passed to the invoked CLIST. This is an optional argument. |
in_image | A string containing the name of an image containing input data for the invoked CLIST. This is an optional argument. |
out_image | A string containing the name of an image to receive output data from the invoked CLIST. This is an optional argument. |
Error codes
$TsoExec normally returns the completion code from the invoked CLIST. If there is some error that prevents the CLIST from being invoked, however, an error code is returned to indicate the problem.
0 - No CLIST name specified -1 - Connection broken -4 - Not a TSO full screen IODEV (IODEV 11) -8 - Incorrect version of TSO interface -16 - Image not found -20 - LOUTPB too small -28 - CLIST name is too long
Example
The following program invokes a CLIST called RUNSAS
in the user's TSO address space with a parameter of INDSN(TEMP.SAS.DATA)
.
B %RC = $TsoExec( 'RUNSAS', 'INDSN(TEMP.SAS.DATA)') END