Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Handling float values in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: Handling float values in easytrieve
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: 3158
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 6:47 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 27, 2007 7:15 pm    Post subject:
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    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 8:13 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 10:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us