I want to use the internal DS functions "Convertweek" and "Week.tag" in a built-in function. I get the following error messages
Array 'ConvertWeek' never dimensioned.
Array 'WEEK.TAG' never dimensioned.
Do I need to declare these internal commands somewhere.
Thanks
Built-In Functions
Moderators: chulett, rschirm, roy
Raftsman,
you also should add the following code to your BASIC program:
This will include the standard DataStage function and routine calls. The two you are referring to are not included in this. You would need to add
to your program to call these functions.
you also should add the following code to your BASIC program:
Code: Select all
$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF
Code: Select all
DEFFUN ConvertWeek(Arg1,Arg2) CALLING 'DSX.'CONVERT.WEEK'
DEFFUN WEEK.TAG(Arg1) CALLING 'DSX.WEEKTAG'
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
No problem, these two are exceptions, normally your functions & routines are catalogued as DSU.{routinename} and the DEFFUN syntax is the same; but that didn't work when I tried it for your question so I had to look a bit deeper.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: