INSERT EXEC

INSERT EXEC can execute different syntax based on whether the system currently has at least one fatal error after the latest Fatal Error Count Reset.
  • If there were no fatal errors, the /SUCCESS subcommand can execute specific syntax (if available). Do nothing when /SUCCESS is not available.
  • If there was at least one fatal error, the /FAILURE subcommand can execute specific syntax (if available). Do nothing when /FAILURE is not available.
  • When the /CLEAR subcommand is specified, the system's fatal error count is reset to zero. When the /CLEAR subcommand is specified, neither /SUCCESS nor /FAILURE can be specified.
  • At least one subcommand must be specified.
  • The keyword FILE is required for both the /SUCCESS and /FAILURE subcommands (other keywords are optional).
Note: Equals signs (=) used in the syntax chart are required elements.
INSERT EXEC
     [/SUCCESS FILE='file specification']
          [PASSWORD='password']
          [SYNTAX={INTERACTIVE*}]
               {BATCH}
          [ENCODING='encoding specification']
     [/FAILURE FILE='file specification']
          [PASSWORD='password']
          [SYNTAX={INTERACTIVE*}]
               {BATCH}
          [ENCODING='encoding specification']
     [/CLEAR]

*Default if keyword omitted.

This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.

Release History

Release 25.0 Fix Pack 2