expression in trigger

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
yimwai
Participant
Posts: 46
Joined: Thu Jul 01, 2010 9:34 pm

expression in trigger

Post by yimwai »

when I use system variable @date in expression
Oconv(@DATE,"DDZ")=13
THE condition can be satisfied.
today is 2010-07-13

but when I use sequence job parameter I_DATE
Oconv(I_DATE,"DDZ")=13
here the value of I_DATE is 2010-07-13
but the condition can not be satisfied.

Is there any differences?
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

How the condition can be satisfied when DDZ returns 13/Bst

@date is internal representation of the date which will return 15535 today and hence the answer is 13/Bst, "DD" will return 13.


In sequence job instead of using oconv() directly on I_DATE, use OConv(IConv(I_DATE, "D-YMD"), "DD") which will return 13 to match the condition.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply