Hi,
I am quite new to Datastage Paralell jobs. Need your help very much
As I need to load the data into the time dimension as part of that I need to generate a data for column called DAY_CAL_QTR. The data that I need to load into this column is Day number of the Calendar Quarter
Example: from 1 to 90 (end of quarter)
Again for quarter2 the number should start from 1 and ends with the last day of the quarter 91 or 91 etc.., the same way for all the other quarters.
Hope you understand the situation.
Must appriciate your help.
Thanks,
Karunakar
Reg: Date Dimension load
Moderators: chulett, rschirm, roy
-
nkreddy_3
-
nkreddy_3
-
nkreddy_3
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Just map the month number onto the quarter number.
1,2,3 -> 1
4,5,6 -> 2
7,8,9 -> 3
10,11,12 -> 4
The easiest way to do this is with arithmetic - take the month number, add 2, then take the remainder after integer division by 3.
1,2,3 -> 1
4,5,6 -> 2
7,8,9 -> 3
10,11,12 -> 4
The easiest way to do this is with arithmetic - take the month number, add 2, then take the remainder after integer division by 3.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.

</a>