View previous topic :: View next topic |
Author |
Message |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Thu Sep 01, 2005 10:02 am Post subject: Db2-Date Field |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Sep 01, 2005 10:32 am Post subject: |
|
|
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 |
|
 |
|
|