RPG/400 Help


Move Zone Operations

The move zone operations are:

The move zone operations move only the zone portion of a character.

A minus (-) sign in a move zone operation does not result in a negative character in the result field, because a minus sign is represented by a hexadecimal 60 internally and a D zone is required for a negative character. Characters J through R have D zones and can be used to obtain a negative value

(J = hexadecimal D1, ..., R = hexadecimal D9).
Note:
Whenever the word high is used in a move zone operation, the field involved must be a character field; whenever low is used, the field involved can be either a character or a numeric field.

Figure 4. Function of MOVE Zone Operations

Character |     |     |     |     |     | Factor
    |     |  |  |  |  |  |  |  |  |  |  |  Two
    |     *--*--*--*--*--*--*--*--*--*--*
    |      ||         MLHZO        ||
    | MHHZO||*---------------------*|MLLZO
    |      |**---------------------*|
    |      |**        MHLZO        ||
    |      VV                      VV
    |     |     |     |     |     |     |
    V     |  |  |  |  |  |  |  |  |  |  | Result
Character *--*--*--*--*--*--*--*--*--*--* Field
 
 
Character |     |     |     |     |     | Factor
    |     |  |  |  |  |  |  |  |  |  |  |  Two
    |     *--*--*--*--*--*--*--*--*--*--*
    |      |                        |
    |      |                        |MLLZO
    |      *-----------------------*|
    |                 MHLZO        ||
    |                              VV
    |     |     |     |     |     |     |
    V     |  |  |  |  |  |  |  |  |  |  | Result
 Numeric  *--*--*--*--*--*--*--*--*--*--* Field
 
 
 Numeric  |     |     |     |     |     | Factor
    |     |  |  |  |  |  |  |  |  |  |  |  Two
    |     *--*--*--*--*--*--*--*--*--*--*
    |                 MLHZO        ||
    |      *-----------------------*|MLLZO
    |      |                        |
    |      |                        |
    |      V                        V
    |     |     |     |     |     |     |
    V     |  |  |  |  |  |  |  |  |  |  | Result
Character *--*--*--*--*--*--*--*--*--*--* Field
 
 
Numeric  |     |     |     |     |     | Factor
   |     |  |  |  |  |  |  |  |  |  |  |  Two
   |     *--*--*--*--*--*--*--*--*--*--*
   |                               |
   |                               |MLLZO
   |                               |
   |                               |
   |                               V
   |     |     |     |     |     |     |
   V     |  |  |  |  |  |  |  |  |  |  | Result
Numeric  *--*--*--*--*--*--*--*--*--*--* Field
 


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