View previous topic :: View next topic
|
Author |
Message |
jkonica
New User
Joined: 21 Aug 2008 Posts: 5 Location: Pune
|
|
|
|
I need to write a decimal value (8 N 2) to output file with decimal.
Please suggest how this can be done.
Thanks.. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Then why have you posted this in the ABENDS & Debugging forum.
Which language are we talking here, any more info would be appreciated. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
jkonica wrote: |
I need to write a decimal value (8 N 2) to output file with decimal.
Please suggest how this can be done.
Thanks.. |
What language?
For Easytrieve you need to use a edit mask, read the manual. |
|
Back to top |
|
|
jkonica
New User
Joined: 21 Aug 2008 Posts: 5 Location: Pune
|
|
|
|
Sorry .. i did not mention that...
yes...this is about easytrieve...
edit mask can be done to variables that r written to output file also? |
|
Back to top |
|
|
jkonica
New User
Joined: 21 Aug 2008 Posts: 5 Location: Pune
|
|
|
|
I am writing a variable.. to an output file...
variable is..
OUT-AMT 17 8 N 2
When i write OUT-AMT to output file, its value is '00001234'
while on display it is 12.34...
while writing to file, it should be 12.34
Please suggest on this.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you create the value (using the edit mask) in a working variable. Redefine this working variable as a character field. Then move the character redefinition to the output file. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
An example PRINTER EXIT is now here.
This will allow you to use a MASK to edit a field, and then put that field on an output file. |
|
Back to top |
|
|
|