Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Enter job

&pagelevel(3)&pagelevel

The following list applies to procedures (Enter files) which are called with the ENTER-JOB command, i.e. to procedures which are to run in batch mode.

  1. Procedure head and end of procedure

    1. Generate SDF-P procedure head:
      Remove the SET-LOGON-PARAMETERS or LOGON command.
      In S procedures, no distinction is made between foreground and background procedures. For this reason, S procedures cannot contain a SET-LOGON-
      PARAMETERS or LOGON command.
      If the SET-LOGON-PARAMETERS or LOGON command is removed, the procedure has a procedure head implicitly. The default settings apply to the procedure attributes.

    2. Terminate procedure correctly:
      Remove the EXIT-JOB (with MODE=*NORMAL) or LOGOFF command.
      Insert the EXIT-PROCEDURE command.
      Since no distinction is made between background and foreground procedures in S procedures, the EXIT-JOB or LOGOFF command must also be removed at the end of the procedure.

    3. Terminate procedure abnormally:
      In an enter job, terminating a procedure with /EXIT-PROCEDURE ERROR=*YES in a monitoring MONJV nevertheless leads to the end status $T (“normal end”). If the enter file used to date contains the EXIT-JOB command with MODE=*ABNORMAL or ABEND, a distinction must be made between the following two cases:

      • When the job is not to be monitored by means of a MONJV or if the MONJV end status $T is required, these commands can also be replaced by /EXIT-PROCEDURE ERROR=*YES.

      • When the job is to be monitored by a MONJV and the MONJV end status $A is required, the EXIT-JOB command with MODE=*ABNORMAL must be used.
        Note  It must be noted that the S. files are not deleted when a background  procedure is terminated with /EXIT-JOB. 

  2. If a background procedure is called from another procedure:

    Adapt the procedure call, or replace the ENTER-JOB command with ENTER-PROCEDURE.

    (Procedures which are to run as background procedures under SDF-P are called with the ENTER-PROCEDURE command, which, in turn, issues an ENTER-JOB command internally.)
  3. For the remaining conversion steps, see the description of converting Non-S procedures.