Page 1 of 1

Calling Date functions in a routune

Posted: Tue Aug 29, 2006 6:02 am
by jzijl
Hello,

I am building a routine in which I want to use the YearFromDate function.
When compiling this routine I get the following message:

Array 'YearFromDate' never dimensioned.

I have the impression that I have to include ($INCLUDE) something to make this function available in this routine. If so, I don't know what to include and is there an overview of 'libraries' to include with its contens?

Kind regards,

Jan

Posted: Tue Aug 29, 2006 6:04 am
by ray.wurlod
It's DEFFUN that's really needed.

If the appropriate DEFFUN declaration exists in a header file then you can $INCLUDE that header file.

Read about DEFFUN and $INCLUDE In the DataStage BASIC manual or in on-line help.