‎2005 Jun 17 9:08 PM
Hello all,
I need help, and I need it fast!
I have an issue with an asterisk that appears in an extracted (txt File) data from a Z table, the field is a P DEC(3) type. The case is simple to understand, but its a headache maker too!
The value of this field is inserted into a variable of type DEC(2). In this automatically conversion, apparently, the value is loosing data. So, finally, the program put a different number in the text file that the first one in the table. This is, obviously, a data type error, and I should change the data type of the variable. But the fact is that Im not worry about this loosing of data. The real problem is that the value printed into the text file includes an asterisk that I couldnt avoid.
Example:
OriginalTable-Field = 120.000
Variable = OriginalTable-Field
Value printed into the text file:
*0
I had debugged the program, and the variable value seems to be right before print it into the file
Does anybody have a suggestion?
Thax.
‎2005 Jun 17 9:30 PM
The asterisk is trying to tell you something. Did you make the text field large enough to contain the number. In this case it looks like you might have meant to type:
field(12),
but typed:
field(2),
instead.
Rob
‎2005 Jun 22 1:46 PM
‎2005 Jun 22 1:55 PM
‎2005 Jun 22 2:07 PM
Hi Juan Pablo,
define as follows:
data variable type string.
regards Andreas