This command moves the specified source‑item to the target data‑name. Follow COBOL MOVE statement rules when formatting an indirect command Move.
The syntax is:
Move [source‑item] TO data‑name
Note: Brackets,[ ], indicate a choice of source‑items.
Valid source‑items follow.
|
Source Item |
Description |
|---|---|
|
[ALL,]'char‑data' |
'char‑data' or "char‑data" is a non‑numeric character string. |
|
[ALL,]x'hex‑data' |
x'hex‑data' or x"hex‑data" is a hexadecimal string. |
|
numeric literal |
numeric literal is valid only if the target data‑name is a numeric variable. |
|
figurative constant |
figurative constant is any valid COBOL figurative constant. |
|
floating‑point literal |
floating‑point literal is valid only if the target data‑name is COMPUTATIONAL‑1, COMPUTATIONAL‑2 (COBOL) or FLOAT (PL/I). |
|
arithmetic expression |
arithmetic expression is any valid CA InterTest arithmetic expression. |
|
bit literal |
bit literal is any bit literal string. |
Note: For a complete description of each of these source items, see Formatting Indirect Commands later in this chapter.
Refers to a COBOL or PL/I variable name. Qualifiers and subscripting are allowed.
Refers to another COBOL or PL/I variable name. If the data‑name is a COBOL Index cell, the MOVE command moves exactly the data specified into the Index cell. No mathematical calculation is performed.
|
Copyright © 2012 CA.
All rights reserved.
|
|