toPgm in transferToTransaction element
In the transferToTransaction element
of the linkage options part, the required toPgm property
specifies one of the following:
- For Java™ or COBOL programs generated for a non-CICS environment, the name of the program part (or the name of the non-EGL program) that receives control.
- For COBOL generated for a CICS® environment, the name of the transaction that receives control.
- The value of a linkageKey property that was specified for a transfer to transaction statement. Using a linkageKey enables you to create a single transferToTransaction entry for multiple programs that have the same characteristics for the transfer to transaction.
If the function word sysVar.transferName is specified as the target in a transfer statement, do not specify that system variable in the related toPgm property. Instead, specify the program name that will be in sysVar.transferName when the program runs. Alternatively, specify a linkageKey on the transfer to transaction statement and specify the value of that linkageKey as the toPgm property.
You can find more information about the system variables and functions mentioned here in the topics "transfer" and "transferName" in the EGL Language Reference.