z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SYSCALL statement

z/OS TSO/E CLISTs
SA32-0978-00

Use the SYSCALL statement to pass control to a subprocedure. The SYSCALL statement contains the name of the subprocedure and any parameters to be passed. The name of the subprocedure must match the label on the PROC statement that begins the subprocedure.

Read syntax diagramSkip visual syntax diagram
>>-+--------+--SYSCALL--procname-------------------------------->
   '-label:-'                      

>--+-------------------------------+---------------------------><
   |             .---------------. |   
   |             V               | |   
   '-parameter_1---+-----------+-+-'   
                   '-parameter-'       

label
A name the CLIST can reference in a GOTO statement to branch to this SYSCALL statement. label is one-to-31 alphanumeric characters, beginning with an alphabetic character.
procname
The label of the PROC statement that begins the subprocedure.
parameter_1 / parameter
Any valid CLIST expression, including constants, symbolic variables, built-in functions, and arithmetic expressions. All parameters are separated by CLIST delimiters (blanks, commas, or tabs). For information about how to pass a parameter that contains blanks, see Calling a subprocedure.

If the parameter is the name of a variable that is referred to in a SYSREF statement in the subprocedure, the variable name must not include an ampersand on the SYSCALL statement.

The PROC statement of the subprocedure is responsible for defining variables to receive the parameters.

ikjb80c1

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014