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 

Db2-Date Field

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


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Thu Sep 01, 2005 10:02 am    Post subject: Db2-Date Field Reply with quote

I have a date field , I need to compare year of
the date field in the program , when using a host variable what should be the definition of hostvariable. should the hostvariable comp-3 or comp.

move 1999 to ws-date-year
where year(Date-field) = :ws-date-year

Please Clarify.
Thanks
Raj
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Sep 01, 2005 10:32 am    Post subject: Reply with quote

Raj,

The result of the scalar function YEAR is large integer which is equivalent to S9(09) COMP in cobol. You can the host variable define S9(04) COMP or S9(09) COMP.

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 -> Database 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