View previous topic :: View next topic
|
Author |
Message |
pjnithin
Active User
Joined: 22 Dec 2005 Posts: 116
|
|
|
|
how can we declare sigend variables in ezytrieve |
|
Back to top |
|
|
Nishant Jain
New User
Joined: 25 Jul 2006 Posts: 3
|
|
|
|
There is no need to declare any signed variable in Easytrieve. Indeed there is no criteria in Easytrieve to declare any variable as signed or unsigned. Easytrieve automatically takes care of that.
For example, if your declaration for some variable is like
WS-VARIABLE-1 W 4 N 0
And if after some calculations its value comes to be negative, then the minus sign will appear on the right hand side of the value in the report. It will look as 1234-. And this will be taken care in all the calculations.
However, if you want the minus sign on the left handside, you can make use of the MASK edit verb of Easytrieve. |
|
Back to top |
|
|
melmania
New User
Joined: 22 Sep 2006 Posts: 4 Location: Phoenix, AZ
|
|
|
|
I have a file that contains a 2-byte field which I defined as 'N'. In the file the field has a hex value of x'F5C2'. My program does a check to determine if the field is numeric (some of the records contain spaces). This record fails the numeric check and is not added to the total. Is there a fix for this? |
|
Back to top |
|
|
|