In MP CONNECT processing, by default, macro variables
in an RSUBMIT block are defined only when a synchronization point
is encountered. In order to force macro variables to be defined when
the %SYSRPUT macro variable executes, specify CSYSRPUTSYNC=YES in
each RSUBMIT statement.
values that are specified in the CSYSRPUTSYNC= option differ between
consecutive RSUBMIT blocks, the latter value supersedes the former
If the SYSRPUTSYNC
system option is specified, the CSYSRPUTSYNC= option in the RSUBMIT
statement takes precedence. If the CSYSRPUTSYNC= option in an RSUBMIT
block is omitted, the value for the system option is applied.
In the following program,
the CSYSRPUTSYNC=YES option is specified in each RSUBMIT block in
order to force macro variables to be defined for each %SYSRPUT macro
variable execution. Without an explicit setting of CSYSRPUTSYNC=YES
in each RSUBMIT block, a default value is provided by the SYSRPUTSYNC
system option. The default is CSYSRPUTSYNC=NO, which causes macro
variables to be defined when synchronization points are encountered.