Just an idea: The missing argument may be a stage name. But it is for you to figure out in what position to put it.
I had similar problem with the other function. Documentation was incorrect.
Setting Stage Variables
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 385
- Joined: Tue Oct 07, 2003 4:55 am
Hi,
If you'll look at the JOBCONTROL.H file in you projct directory you can see the definition og the function:
Where are you using this function ?
HTH,
Amos
If you'll look at the JOBCONTROL.H file in you projct directory you can see the definition og the function:
Code: Select all
Deffun DSSetVar(VarName, VarValue)
HTH,
Amos
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
DSSetVar is a function. You are trying to invoke it as a subroutine, using the CALL statement.
Curiously, this is possible.
The first argument must be the name of the variable that is to hold the result.
The following two statements are equivalent, provided that a DEFFUN declaration has been made.
No "CALLING" clause is required in the DEFFUN declaration, because the DSSetVar function is cataloged under its own name; that is, with no "DSU." or other prefix.
Curiously, this is possible.
The first argument must be the name of the variable that is to hold the result.
The following two statements are equivalent, provided that a DEFFUN declaration has been made.
Code: Select all
Result = DSSetVar(VarName, VarValue)
Call DSSetVar(Result, VarName, VarValue)
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.