You can pass control between CSP and
z/OS® XL C as follows:
- CALL
- Calls another application or subroutine to be run. When execution
is completed, control is returned to the statement following the CALL statement
in the original application.
- XFER|DXFR
- Transfers control and initiates execution of a CSP application
or non-CSP program or transaction. The current application is terminated
when the transfer statement is executed.
Under CICS, XFER is
used to transfer control to another
CICS transaction, while DXFR is
used to transfer control to an application or program. If the target
name is an application, control remains in CSP and the application
is initiated immediately. If the target name is a program, CSP issues CICS
XCTL to the program name.
Note: From a z/OS XL C program, you can pass control to a
CSP application but you cannot pass control to another z/OS Language Environment®-enabled
language (COBOL, PL/I) from that CSP application. Only one z/OS Language
Environment-enabled
language can be in the chain of calls.