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 

Easytrive Field Def for A Float

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


Joined: 20 May 2003
Posts: 15
Topics: 10

PostPosted: Fri Jul 09, 2004 9:56 am    Post subject: Easytrive Field Def for A Float Reply with quote

Hi:

I checked the Ezt manual but I did not see how to hand a number defined on the database as a Float. In SPUFI, I can use the expression
DECIMAL(AGE,3,0) AS AGE. I will want to specify numbers with or without decimals. Question Thanks
_________________
Capp
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Jul 09, 2004 10:11 am    Post subject: Reply with quote

Cappertan,


Float in DB2 is equivalent to COMP-2 in cobol. Unforunately Easytrieve does not have data-item which is equivalent to comp-2 in cobol. So if care about the whole number without any decimal portion , define it as numeric without any decimal postions

ie.
Code:

 W-DB2-VAR       W 09 N 0


Hope this helps...

Cheers

Kolusu
_________________
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 -> Application Programming 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