$TsoCmd: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:$TsoCmd}} <span class="pageSubtitle"><section begin="desc" />Invoke command in user's TSO address space<section end="desc" /></span> <p class="warning">Most Siriu...")
 
m (1 revision)
(No difference)

Revision as of 15:45, 31 January 2011

<section begin="desc" />Invoke command 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 $TsoCmd function is to be entered.

This function invokes a command in the user's TSO address space.

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

The $TsoCmd function accepts two arguments 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 processing is performed and a completion code of 0 is returned.

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

Syntax

<section begin="syntax" /> %RESULT = $TsoCmd(clist, parms) <section end="syntax" />

$TsoCmd Function

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


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

0 - No command name specified -1 - Connection broken -4 - Not a TSO full screen IODEV (IODEV 11) -8 - Incorrect version of TSO interface -20 - LOUTPB too small -28 - Command name is too long

$TsoCmd return codes


The following program invokes a command called ALLOCATE in the user's TSO address space with a parameter of DSN('M204.DATA') NEW TRACKS SPACE(15,10).

B %RC = $TsoCmd( 'ALLOCATE', - 'DSN(M204.DATA) NEW TRACKS SPACE(15,10)') END

  • &JAPF

Products authorizing $TsoCmd