DO SET and SET VAR 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 (specifically, 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
The SET VAR statement appears in each job scheduling definition. The 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 the SET VAR statement, the parameter value is specified after the keyword VAR. In the DO SET statement, the parameter value is specified after the keyword VAR=.