Hi All,
I am getting error while UtilityRunJob from user defiend routine. below is my code.
------------------------------------------------
$INCLUDE DSINCLUDE JOBCONTROL.H
Arg1 = "TestJob"
Str = UtilityRunJob(Arg1,"","","")
Ans = Str
----------------------------------------------
Error message :
Compiling: Source = 'DSU_BP/DSU.TestRoutine', Object = 'DSU_BP.O/DSU.TestRoutine'
0003 Str = UtilityRunJob(Arg1,"","","")
^
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'UtilityRunJob' never dimensioned.
2 Errors detected, No Object Code Produced.
How do i solve this error
I am getting error while calling UtilityRunJob from a routin
Moderators: chulett, rschirm, roy
What about the following... the original error is an indication it can't find the UtilityRunJob routine
Ogmios
Code: Select all
Deffun UtilityRunJob(Name, PA, R,W) Calling "DSX.UTILITYRUNJOB"
Arg1 = "TestJob"
Str = UtilityRunJob(Arg1,"","","")
Ans = Str
Last edited by ogmios on Sat Apr 15, 2006 3:00 pm, edited 1 time in total.
In theory there's no difference between theory and practice. In practice there is.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
UtilityRunJob is not cataloged with a "DSU" prefix. From memory it's cataloged as "DSX.UTILITYRUNJOB". Someone with access to DataStage could perhaps verify this. That's the name that must be used in the CALLING clause. And note that it is case sensitive (all upper case).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.