$TsoCall

From m204wiki
Revision as of 17:36, 28 January 2011 by 198.242.244.47 (talk) (Created page with "{{DISPLAYTITLE:$TsoCall}} <span class="pageSubtitle"><section begin="desc" />Call program in user's TSO address space<section end="desc" /></span> <p class="warning">Most Sirius...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin="desc" />Call program in user's TSO address space<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $TsoCall function is to be entered.

This function invokes a program in the user's TSO address space. $TsoCall performs a "synchronous" call to the program. That is, control is not returned from $TsoCall until the invoked program terminates.

This function requires the special version of the TSO full screen interface to Model 204 that is distributed by Sirius Software.

The $TsoCall function accepts five arguments and returns a numeric completion code.

The first argument is a string containing the name of the program 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.

The second argument is a string containing the path name for the program to be invoked in the TSO address space. This is an optional argument.

The third argument is a string containing the parameters to be passed to the invoked program. This is an optional argument.

The fourth argument is a string containing the name of an image containing input data for the invoked program. This is an optional argument.

The fifth argument is string containing the name of an image to receive output data from the invoked program. This is an optional argument.

Syntax

<section begin="syntax" /> %RESULT = $TsoCall(clist, path, parms, in_image, out_image) <section end="syntax" />

$TsoCall Function

%RESULT is set either to the completion code from the invoked program or to an error code.


$TsoCall normally returns the completion code from the invoked program. If there is some error that prevents the program from being invoked, however, an error code is returned to indicate the problem.

0 - No program 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 - Program name is too long

$TsoCall return codes


The following program invokes a program called 'DELETE' in the user's TSO address space with a parameter of 'DSN(TEMP.SAS.DATA)'.

B %RC = $TsoExec( 'DELETE', , 'DSN(TEMP.SAS.DATA)') END

  • &JAPF

Products authorizing $TsoCall