R3_ACTIVATE_EXT_PROGRAM

Use the R3_ACTIVATE_EXT_PROGRAM script element to execute an external program.

Transaction: SM36
Interface: Standard

Syntax

R3_ACTIVATE_EXT_PROGRAM

    PROGRAM=...
    [,PARAMS=...]
    ,TARGET_SERVER=...
    [,STDOUT=...]
    [,STDERR=...]
    [,TRACE=...]
    [,TERM=...]

Parameters

  • R3_ACTIVATE_EXT_PROGRAM
    Executes an external program

  • PROGRAM=
    Name of the program that should be executed
    Format: script literal

  • PARAMS=
    (Optional) Parameter for the program
    Format: script literal
    Default value: ""

  • TARGET_S[ERVER]=
    Name of the computer on which the program should be executed
    Format: script literal

Control Flags

  • STDOUT=
    (Optional) Adds the external output on to the job log
    Format: script literal
    Allowed values:

    • "" (default)
      This control flag is not set.

    • X
      The external output is added to the job log

  • STDERR=
    (Optional) Adds external errors to the job log
    Format: script literal
    Allowed values:

    • "" (default)
      This control flag is not set.

    • X
      The external errors are added to the job log

  • TRACE=
    (Optional) Activates the tracing function
    Format: script literal
    Allowed values:

    • "" (default)
      This control flag is not set.

    • X
      Activates the tracing function

  • TERM=
    (Optional) The job waits until it is ended externally
    Format: script literal
    Allowed values:

    • "" (default)
      This control flag is not set.

    • X
      The job waits until it is ended externally

Example

R3_ACTIVATE_EXT_PROGRAM PROGRAM='dir',PARAMS='*.*',TARGET_SERVER='NB0053',STDOUT='X',STDERR='X',TERM='X'

See also:

seealso

About SAP JCL