0610 Return Value = DSWaitForJobList("Add", singleStreamJob, 1);
^
Variable Name (UNDEFINED) unexpected, Was expecting: ';', End of Line
The documentation suggests that the second argument of the function (singleStreamJob above) should be a handle, but gives an example of it quoted as a string, as follows:
If your code example is literally what you are trying to run, the problem is the whitespace in your variable name. Try it using "ReturnValue" instead of "Return Value" and you should be ok... or at least more ok.
-craig
"You can never have too many knives" -- Logan Nine Fingers
Where do you find DSWaitForJobList in the documentation? I find DSWaitForJob but not the one you use. From the error message I would think DataStage does not think the DSWaitForJobList exists as well.
That was a new one on me, too. Found it in the BASIC reference. Not sure how to utilize it... all I've managed to do so far is duplicate the original problem.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"Array never dimensioned" errors usually mean that you've forgotten to include a DEFFUN declaration for a function.
When the compiler encounters an identifier followed by a left parenthesis it assumes - because it's not been informed that the identifier is a function name - that the identifier is the name of a dimensioned array, it then checks through it's list of array structures and fails to find the DIMENSION statement.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I've just checked on a DataStage version 5.2 system. There is no supplied DSWaitForJobList function here.
Therefore, if you do have it, and it's compiled, it's in the "user written functions" part of the repository, so your DEFFUN declaration must refer to "DSU.DSWaitForJobList".
This isn't a user-written function, it's a supplied function I found in the documentation, but which apparently doesn't exist (thanks Ray for confirming that).
FYI The documentation I found it in is online help on DataStage 5.2.2.
It's even there for DS 5.2.1 (in on-line help), so maybe it's an intrinsic function for job sequences. I'll have to do more investigation.
However, re-reading your error message, the caret isn't under the DSWaitForJobList token, so it's probably not that.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.