Calculation

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
rebamanu
Premium Member
Premium Member
Posts: 1
Joined: Tue Feb 19, 2008 9:40 pm

Calculation

Post by rebamanu »

Hi,
i need to calculate the aggregate current balance using 3 variables..the End of Month Date,Date opened and the current balance..expression given is
End of Month Date([YYYYDDD) - Date Opened <= End of Month Date(DDD) then
aggregate current balance / End of Month Date (YYYYDDD) - Date Opened + 1 else
aggregate current balance /end of month(DDD)

How do i implement in transformer stage..I tried Days since date but throws up error saying :Data string '%yyyy-%mm-%dd' does not match format '%yyyy-%mm-%dd': an integer was expected to match tag %yyyy.
Thanks
Reba
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Your format string should match the data as in "%yyyy%ddd"
Post Reply