synchOnPgmTransfer
The synchOnPgmTransfer build descriptor option is used when you are generating a COBOL program for a CICS® environment; the option lets you to minimize the differences in behavior when a transferring program is generated for CICS® as compared to when that program is generated for IMS/VS.
The option specifies whether to set a commit point if the following
conditions are true:
- The generated program runs a transfer to program statement;
- The target program of the transfer statement is an EGL-generated program;
- A PSB is scheduled; and
- The default PSB referenced in the PSB record of the transferring
program matches the default PSB referenced in the PSB record of the
target program.Note:The default PSB is the value of the defaultPSBName property, which is set in the PSB record part. To see examples of PSB records, see the topic "DL/I Support" in the EGL Language Reference.
The following rules also apply in an EGL-generated COBOL program:
- On CICS®, if no PSB is scheduled for the transferring program, a commit point never occurs for a transfer to program statement, but always occurs for a transfer to transaction statement.
- On CICS® or IMS™, if the transferring program and the target program have different default PSB references, a commit point always occurs for either a transfer to program or a transfer to transaction statement.
- On CICS® or IMS™, a commit point always occurs for a show statement
Values
- NO
- As is true on IMS™, the transfer to program statement does not commit recoverable resources, close files, or close cursors in the case described earlier.
- YES (the default value)
- The transfer to program statement commits recoverable resources, closes files, and closes cursors in the case described earlier.