XCTL

Top  Previous  Next

This command is used to pass control from an application program to another at the same logical level. In this case also data can be passed from the calling program to the called program.

XCTL    PROGRAM(pgmname)
[ COMMAREA(area) ]
[ LENGTH(len) ]    

Options

COMMAREA(area)

specifies a communication area to be made available to the invoked program. In this option the contents of the data-area are passed.

LENGTH(len)

specifies the length (halfword binary data value) in bytes of the communication area.

PROGRAM(pgmname)

specifies the identifier (1-8 alphanumeric characters) of the program to which control is to be passed unconditionally.