View previous topic :: View next topic
|
Author |
Message |
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi,
How can I move HIGH values and LOW values in Natural?
Thanks, |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try something like this:
Code: |
DEFINE DATA LOCAL
1 #HIGH-VAL (A3)
1 #LOW-VAL (A3)
END-DEFINE
*
MOVE H'FFFFFF' TO #HIGH-VAL
MOVE H'000000' TO #LOW-VAL
*
END |
O. |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hey Ofer,
Thank you for your response.
Could you please tell me to which data types we can move HIGH/LOW values?
Thanks |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
There is no such thing as LOW/HIGH VALUES in NATURAL. In my example, I simply moved a hexadecimal string to a variable. The values of these strings are equivalent to COBOL's LOW/HIGH VALUES.
O. |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Fine.
But the destination variable can be of any data type or that has to be of Alphanumeric data type.
2ndly what does it mean by H'0D'?
Thanks |
|
Back to top |
|
|
|