mk_kumar315
New User
Joined: 21 Nov 2005 Posts: 10
|
|
|
|
Hi,
I have doubt regarding MOVE statement in cobol.
I want to move a variable S9(4)v9(4) to another variable
S9(4)v9(4)COMP-3.
Is it possible by giving MOVE A TO B.
By giving like this can i get all valid data or any INVALID will be displayed.
Thanks In Advance,
M.K.Kumar |
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Yes, of course this can be done, The only difference in the two variables is the internal format that the computer uses to store the numbers.
If you wanted to store a numbet +1234.5678. The S9(4)v9(4) would have a hex value of 'F1F2F3F4F5F6F7C8' with the assumed decimal point, and the S9(9)v9(4) COMP-3 would have an internal hex value of X'012345678C', also with the assumed decimal point.
Dave |
|