MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I need help with EZtrievePlus Mask

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mikeleibo
Beginner


Joined: 22 Feb 2007
Posts: 8
Topics: 3
Location: Roswell, GA

PostPosted: Tue Mar 25, 2008 1:14 pm    Post subject: I need help with EZtrievePlus Mask Reply with quote

I am a neophyte in easytriev and the manuals don't seem to help.

I have a DB2 input field decimal 20v4.

I need to report it in the format of -999999999999.9999. I can't seem to get the mask working properly - I am dropping low order digits or just ignoring sign and deciomal place is not being propagated.

I defined input as amt W 10 P 4
I defined output as amt 060 15 N 4 MASK '-9999999999.9999'

Thanks for your help!
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Mar 26, 2008 9:55 am    Post subject: Reply with quote

mikeleibo,


For every byte of Packed decimal Field you need 2 bytes of numeric field. So in this you need 14 9's for integer portion and 4 9's for decimal portion and 1 byte for sign
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mikeleibo
Beginner


Joined: 22 Feb 2007
Posts: 8
Topics: 3
Location: Roswell, GA

PostPosted: Wed Mar 26, 2008 10:00 am    Post subject: Reply with quote

Thanks but that doesn't help.

I cut the field to 6 packed by moving it to a work area first and then to the output field and it still does not propagate the decimal and does not use the sign position.
_________________
Thanks,
Mike
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Mar 26, 2008 10:52 am    Post subject: Reply with quote

mikeleibo,


The packed decimal field does not have exclusive decimal stored. Here is a way to get the results

http://www.mvsforums.com/helpboards/viewtopic.php?p=4807#4807

Hope this helps...
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group