When this form of the SET statement is executed, the current value of the receiving field is replaced by the value of the sending field (with conversion).
___ Format 1--SET (Basic Table Handling) _______________________________ | | | <__________________ | | >>__SET____ _index-name-1_ _|__TO__ _index-name-2_ _________________>< | | |_identifier-1_| |_identifier-2_| | | |_integer-1____| | | | |________________________________________________________________________|
Must name either index data items or elementary numeric integer items.
The value before the SET statement is executed must correspond to the occurrence number of its associated table.
Must name either an index data item or an elementary numeric integer
Must be a positive integer.
Table 48shows valid combinations of sending and receiving fields in a Format 1 SET statement.
Table 48. Sending and Receiving Fields for Format 1 SET Statement | |||
Sending Field |
Receiving Field | ||
Index-name |
Index Data Item |
Integer Data Item |
|
---|---|---|---|
Index-name | Valid | Valid(*) | Valid |
Index Data Item | Valid(*) | Valid(*) | -- |
Integer Data Item | Valid | -- | -- |
Integer Literal | Valid | -- | -- |
(*)No conversion takes place |
Receiving fields are acted upon in the left-to-right order in which they are specified. Any subscripting or indexing associated with an identifier's receiving field is evaluated immediately before the field is acted upon.
The value used for the sending field is the value at the beginning of SET statement execution.
The value for an index-name after execution of a SEARCH or PERFORM statement can be undefined; therefore, a Format 1 SET statement should reinitialize such index-names before other table-handling operations are attempted.
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.