SETOPT statement

The SETOPT statement allows you to set options at the module level, rather than the job step level as in the binder batch parameter string. This allows you to set module attributes when a number of modules are being bound separately in a single MVS™ job step.

SETOPT accepts a string of parameter specifications as if it had been entered on the PARM parameter of the EXEC JCL statement. The options you specify are valid only until after the next NAME control statement is processed or until an end-of-file condition is detected in SYSLIN.

The syntax of the SETOPT statement is:

SETOPT          PARM(parm)
PARM(parm)
Accepts a string of parameter specifications as if it had been entered on the PARM parameter of the EXEC JCL statement. It follows the same syntax rules as the binder batch execution parameter string. The following batch options cannot be set using the SETOPT control statement:
  • COMPAT
  • EXITS
  • LINECT
  • MSGLEVEL
  • OPTIONS
  • PRINT
  • SIZE
  • TERM
  • TRAP
  • WKSPACE

In addition, the single keyword form of REUS cannot be used with SETOPT.

See Binder options reference for more information on the options that can be specified in the PARM field of the EXEC statement.