Date comparison in tranformer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Benny Domeij
Participant
Posts: 6
Joined: Mon Mar 07, 2005 2:43 am

Date comparison in tranformer

Post by Benny Domeij »

I wonder why this expression only give me 'N' for column forny although I get rows with different valid_from_date2 and valid_from_date:
if DSLink247.valid_from_date2<>DSLink247.valid_from_date then 'J' else 'N'

valid_from_date2 and valid_from_date are in date format.
Althaf6553
Participant
Posts: 64
Joined: Wed Sep 26, 2007 6:52 am
Location: Syracuse ,NY

Post by Althaf6553 »

Please check with the data formats on both sides while doing comparision
i mean <dd-mm-yyy:hh:mm:nn>
Althaf
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not only the same format but one that allows comparison: either the internal numeric format or the ISO external format YYYY-MM-DD.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply