RPG/400 Help

SHTDN (Shut Down)

*---------*---------------*-----------------*----------------*---------------*
|   CODE  |    FACTOR 1   |     FACTOR 2    |     RESULT     |  INDICATORS   |
|         |               |                 |      FIELD     |               |
*---------*---------------*-----------------*----------------*---------------*
| SHTDN   |               |                 |                |    ON _ _     |
*---------*---------------*-----------------*----------------*---------------*

The SHTDN operation allows the programmer to determine whether the system operator has requested shutdown. If the system operator has requested shutdown, the resulting indicator specified in positions 54 and 55 is set on. Positions 54 and 55 must contain one of the following indicators: 01 through 99, L1 through L9, U1 through U8, H1 through H9, LR, or RT.

The system operator can request shutdown by specifying the *CNTRLD option on the following CL commands: ENDJOB (End Job), PWRDWNSYS (Power Down System), ENDSYS (End System), and ENDSBS (End Subsystem).

Positions 56 through 59 must be blank.

Figure 55. SHTDN Operation

*...1....+....2....+....3....+....4....+....5....+....6....+....7...
CL0N01N02N03Factor1+++OpcdeFactor2+++ResultLenDHHiLoEqComments++++++
C*
C*  When the SHTDN operation is run, a test is made to determine
C*  whether the system operator has requested shutdown.  If so,
C*  indicator 27 is set on and the GOTO END operation is processed.
C                     SHTDN                     27
C   27                GOTO END


[ Top of Page | Previous Page | Next Page | Table of Contents ]