Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)
Procedure Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual—426750-001
6-46
MOVE Statements
data-item
specifies the OLD-CURSOR or NEW-CURSOR special register or specifies a
Working-Storage data item defined as follows:
01 WS-USER-SAVE-CURSOR.
02 WS-USER-SAVE-ROW PIC 9(4) COMP.
02 WS-USER-SAVE-COL PIC 9(4) COMP.
screen-item
specifies an elementary screen item defined in the Screen Section, or specifies an
elementary screen item within a defined screen overlay item. The screen-item
cannot include an OCCURS clause.
screen-area
specifies the name of a screen overlay item in a base screen definition. You include
screen-area so the compiler can calculate the offset position of the overlay
elementary screen item relative to the base screen.
NOT
specifies negation.
•
Using either one of the NOT options causes the compiler to issue the same code
and the statements following the IF ... WITHIN statement are executed only if
the row and column values in data-item are not the same as the defined row
and volume values in screen-item in the Screen Section.
•
Using both of the NOT options cancels their effect and is equivalent to using
neither one.
MOVE Statements
The MOVE statements transfer data from one data item to one or more other data items
in accordance with editing rules. The forms of the MOVE statements are:
MOVE
MOVE CORRESPONDING
MOVE Statement
The MOVE statement transfers data from a data item to one or more data items.
Note. For screen fields that wrap, only the first row is tested. If you test a screen field that
wraps using the IF ... WITHIN statement, a warning is issued.
MOVE data-name-1 TO { data-name-2 } [,] ...