YearweekFromDate() Function in Transformer Stage in DataStage

Returns the week number in the year from the given date

Input: date
Output: week (int16)
Examples. If mylink.mydate contains date 2013-12-28, then the two following functions are equivalent, and return the value 52:

YearweekFromDate(“2013-12-28”)
YearweekFromDate(mylink.mydate)

You can watch video tutorial of this function here:

Comments

comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: