Compilation issue while using MONTH.LAST transform function

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sumesh.abraham
Participant
Posts: 153
Joined: Thu May 11, 2006 1:52 am
Location: Bangalore

Compilation issue while using MONTH.LAST transform function

Post by sumesh.abraham »

Hi,

I've to implement a leap year check for a data field. I use the MONTH.LAST transform function in a routine. When I compile the routine, I get the compilation error as
Array 'MONTH.LAST' never dimensioned.

1 Errors detected, No Object Code Produced.
What is the cause? I did a search in the forum, but couldn't find any solution. Appreciate your help.

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can not call Transforms from Routines. You must mimic their definition expression instead.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply