SET VAR and DO SET statements are similar but have the following differences:
Local variables in SET VAR statements are always applied before the job is submitted. DO SET is a post-processing statement that can only be applied after its accompanying ON step and code criteria are satisfied. This means that a local value specified in the DO SET statement can only be applied in the next submission of the job (that is, for cyclic and rerun or restarted jobs).
Global variables specified in a SET VAR statement are defined or updated in the IOA Global Variable database before job submission. Global variables specified in a DO SET statement are defined or updated in the IOA Global Variable database as part of job post-processing.
A SET VAR statement appears in each job scheduling definition. A DO SET statement does not appear unless specified. To specify a DO SET statement, type SET in an empty DO field and press Enter.
In a SET VAR statement, the parameter value is specified after the keyword VAR. In a DO SET statement, the parameter value is specified after the keyword VAR=.