View previous topic :: View next topic
|
Author |
Message |
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Hi,
Variable declared in the pgm is
W-COUNT-4A W 10 P 0
I am retrieving a
value into this variable from the database in the Program.
The problem is when I am Moving the value in W-COUNT-4A to another numeric variable I observed a comma is getting moved along.
Eg ...If the value of W-COUNT-4A is 10555.
the value getting moved is 10,555.which is resulting in an abend whle used for addition purpose.
But the same problem can be avoided thru assigning the values
like ..VarB := W-COUNT-4A.
Pls inform me why this difference is arising.
Thanks,
Nikhil .S. |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
When moving numeric data in Easytrieve use an assign insttead of a move example:
W-COUNT-4B = W-COUNT-4A |
|
Back to top |
|
|
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Thanks jon_s_rice
I know yhis is how we tacle the problem.But why is this problem taking place while moving... |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
A move i easytrieve is a straight move without conversion. I had not encountered this particular probplem since I do an assign in this situation. |
|
Back to top |
|
|
|