Setting Stage Variables

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
leomauer
Premium Member
Premium Member
Posts: 100
Joined: Mon Nov 03, 2003 1:33 pm

Post 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.
Amos.Rosmarin
Premium Member
Premium Member
Posts: 385
Joined: Tue Oct 07, 2003 4:55 am

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply