Calling Date functions in a routune

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
jzijl
Participant
Posts: 23
Joined: Thu Jul 20, 2006 6:09 am

Calling Date functions in a routune

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
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