Loading...
Select Version
National data items are moved using the MOVE statement. In the case of operands of different classes, the content of an alphanumeric item can be converted implicitly to the corresponding national representation. However, this is not possible in the other direction. If any national receiving item is longer, it is then filled with national blanks (X'0020') when the move takes place.
Example 12-15
01 a PIC XXX VALUE "123". 01 s. 02 nat1 PIC N(2). 02 nat2 PIC N(2). 01 n PIC N(4) JUSTIFIED RIGHT. MOVE a TO s, n.
after the MOVE, a, s and n have the following content (in hexadecimal notation):
a: | F1F2F3 |
s: | F1F2F34040404040 |
n: | 0020003100320033' |