View previous topic :: View next topic
|
Author |
Message |
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
In the easytreive program i am comparing two input files downloaded from table, in this some float fields are there, that i have define as P 3.
The difference between these two files, i am writing to a output file. But the problem is the float values are coming in unreadable format like this
000411990?21642?85
000411?0 ?0 ?0 ?0
000411?2 684??12
00041184?7904?7904
So, somebody please tell me how to declare workstorage variable for moving these float values. See these float values we are moving to unix,which accepts data in text format only.So we are declaring every thing as A. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
What kind of "float" are you refering to? And why are you defining them as packed decimal?
Can you represent them as hex? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
To make it in readable fom u have to move it to mask edit field . |
|
Back to top |
|
|
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
William Thompson wrote: |
What kind of "float" are you refering to? And why are you defining them as packed decimal?
Can you represent them as hex? |
As i am new to mainframes and easytrieve i don;t have much idea. So can u explane clearly |
|
Back to top |
|
|
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
guptae can u please send me the syntax of mask, as i am new to mainframes |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
rarvins wrote: |
William Thompson wrote: |
What kind of "float" are you refering to? And why are you defining them as packed decimal?
Can you represent them as hex? |
As i am new to mainframes and easytrieve i don;t have much idea. So can u explane clearly |
They are your words, "float".....what do you mean by "float"? |
|
Back to top |
|
|
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
Ya Thompson float values are
1.8000000000000E+00
2.7640449438202E+00
1.7538461538462E+00
for these i am getting output in unreadable format like
000411?0 ?0 ?0 ?0
000411?2 684??12
00041184?7904?7904 |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
That's what I thought you meant, I do not think EZT has any support for float, at least I didn't see it in my manual........
What you might do is bring the 18 characters down into 2 contiguous binary fields and re-split according to the standard float format (which I would have to look up myself). |
|
Back to top |
|
|
|