Search found 32 matches

by adityavinay
Wed Mar 21, 2012 1:31 pm
Forum: General
Topic: CurrentTimestampMS - uservariable stage
Replies: 3
Views: 2709

Re: User variable micro seconds funcitons

Cherukuri,
use a execute command stage first with command ->date +%H:%M:%S.$(( $(date +%N) / 1000000 ))
if you want to set this as parameter to other activity stages - use command output of execute command stage.
Let me know if this works
by adityavinay
Fri Jan 20, 2012 10:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Trouble with StringToDate
Replies: 10
Views: 5407

I am glad its working,
Lets say your source column have a value , space and null coming then this should solve

If IsNull(Ln_in.col_2) Or Trim(Ln_in.col_2)='' Then SetNull() Else StringToDate(Ln_in.col_2,"%yyyy-%mm-%dd")