View previous topic :: View next topic
|
Author |
Message |
jivisampath
New User
Joined: 27 Jun 2005 Posts: 2 Location: bangalore
|
|
|
|
Hai This is sampath.........
i have
A pic ((3) value 123.
b pic $$9.
Move A to B.
Then what will be the value in B?
Give me the rply............. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
123
Madhu |
|
Back to top |
|
|
donevin
New User
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
|
|
|
|
Hi
I suppose you mean A is Pic 9(3). I think b's value will be $23. This is because when there is more than one sign in a picture clause it is a floating sign. The sign will float to the right hand side in the picture clause untill it finds the most significant digit, and suppress all zeroes while doing so. The sign will then be inserted in the picture clause to the left of the most significant digit. If the number of digits is more than or exactly as much as the picture clause, than the sign will overwrite the leftmost digit in the number. Correct if I am wrong please. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hi Sampath!
Quote: |
A pic ((3) value 123.
b pic $$9.
Move A to B.
Then what will be the value in B? |
If we are mentioning more than one $, it will just act as floating sign as donevin said. B contains $23.
These simple things you can just give a try right! |
|
Back to top |
|
|
|