You did not specify what units of measurement the number should be.
Most databases have a DATEDIFF function available (perhaps with a different name).
If you want to do this in DataStage, convert the two dates into internal format (which is the number of days since 31 Dec 1967) and subtract, which gives a result in days. For example:
Iconv(HireDate,"DDMY")-Iconv(JoinDate,"DDMY")
Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Difference between dates
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: