How to extract Valid Date format records

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
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

It is expecting format in lower case. %yyyy-%mm-%dd
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
somu_june
Premium Member
Premium Member
Posts: 439
Joined: Wed Sep 14, 2005 9:28 am
Location: 36p,reading road

Post by somu_june »

Hi DSguru,

Iam geting the same error and records are going to other/log condition and the error Iam getting after using %yyy-%mm-%dd format is

Error

APT_CombinedOperatorController,0: The schema type "date" does not take parameters "%yyy-%mm-%dd"


Thanks,
somaraju
somaraju
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Have you tried it without specifying the format. Let it pick the default format which is %yyyy-%mm-%dd.

Code: Select all

IsValid("date", DSLink2.Date1)
If this doesn't work specify the format on Source column like date1[%yyyy-%mm-%dd] . I had done that once but i don't remember which one works exactly.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
somu_june
Premium Member
Premium Member
Posts: 439
Joined: Wed Sep 14, 2005 9:28 am
Location: 36p,reading road

Post by somu_june »

Hi us1alslam1us,

Thanks for solving my problem.








Thanks,
Somaraju.
somaraju
Post Reply