function to subtract 200 days from date
YRMOSDOS between (&YRMOSDOS - 200) AND (&YRMOSDOS)
where YRMOSDOS is in date form. How do I achieve it?
The database is in db2. Decimal function does not work.
Please help. Thanks a lot.
Looking for relevant Database Whitepapers? Visit the SearchOracle.com Research Library.
Howard2nd | Jun 24 2005 4:13PM GMT
Anytime I have date math I convert to Julian Date. Simple math, easy to work with, and in most languages a faster convert to/from than casting system date to variable.
Good luck.
p.s. Of course I have a roman numeral calculator also.
jvoteur | Jun 29 2005 7:51AM GMT
Couple of quick questions, what version of DB2 are you using? what development environment are you using? and what is the error message you get? If it is a parsing error then you probably aren’t dealing with just a date format issue at this point.