RPG/400 Help

SETON (Set On)

*---------*---------------*-----------------*----------------*---------------*
|   CODE  |    FACTOR 1   |     FACTOR 2    |     RESULT     |  INDICATORS   |
|         |               |                 |      FIELD     |               |
*---------*---------------*-----------------*----------------*---------------*
| SETON   |               |                 |                |    ON ON ON   |
*---------*---------------*-----------------*----------------*---------------*

The SETON operation sets on any indicators specified in positions 54 through 59. You must specify at least one resulting indicator in positions 54 through 59. Entries of 1P, MR, KA through KN, and KP through KY are not valid. Setting on L1 through L9 indicators does not automatically set on any lower control-level indicators.

Figure "SETON and SETOF Operations" illustrates the SETON operation.

SETON and SETOF Operations Example

Figure 54. SETON and SETOF Operations

*...1....+....2....+....3....+....4....+....5....+....6....+....7...
CL0N01N02N03Factor1+++OpcdeFactor2+++ResultLenDHHiLoEqComments++++++
C*
C*  The SETON and SETOF operations set from one to three indicators
C*  specified in positions 54 through 59 on and off.
C*  The SETON operation sets indicator 17 on.
C                     SETON                     17
C*  The SETON operation sets indicators 17 and 18 on.
C                     SETON                     1718
C*  The SETOF operation sets indicator 21 off.
C                     SETOF                     21


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