IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Handling float values in easytrieve


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Tue Mar 27, 2007 6:27 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 6:47 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Mar 27, 2007 7:15 pm
Reply with quote

Hi there,

To make it in readable fom u have to move it to mask edit field .
Back to top
View user's profile Send private message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Tue Mar 27, 2007 7:33 pm
Reply with quote

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
View user's profile Send private message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Tue Mar 27, 2007 7:41 pm
Reply with quote

guptae can u please send me the syntax of mask, as i am new to mainframes
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 8:13 pm
Reply with quote

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
View user's profile Send private message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Tue Mar 27, 2007 8:56 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 10:41 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top