Page 1 of 1

Posted: Fri Nov 05, 2004 3:21 pm
by leomauer
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.

Posted: Sun Nov 07, 2004 12:56 am
by Amos.Rosmarin
Hi,

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)
Where are you using this function ?


HTH,
Amos

Posted: Sun Nov 07, 2004 8:50 am
by chulett
I think the other question is why are you using this function? What are you trying to accomplish in this routine? Perhaps if you spelled out the details, there may be 'better' ways to get you where you want to go.

Posted: Sun Nov 07, 2004 2:42 pm
by ray.wurlod
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.

Code: Select all

Result = DSSetVar(VarName, VarValue)
Call DSSetVar(Result, VarName, VarValue)
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.