Hi
We tried to use the functions DSOpenProject, DSOpenJob and DSCloseJob in the basic routines but on compilation, it is returning the following error:
Array 'DSOpenProject' never dimensioned.
Array 'DSOpenJob' never dimensioned.
Array 'DSCloseJob' never dimensioned.
3 Errors detected, No Object Code Produced.
Please help us in this regard!
Can we use DSOpenProject, DSOpenJob in basic routines?
Moderators: chulett, rschirm, roy
Can we use DSOpenProject, DSOpenJob in basic routines?
Vignesh.
"A conclusion is simply the place where you got tired of thinking."
"A conclusion is simply the place where you got tired of thinking."
vineshgra,
you should include the following code in your BASIC program:
and the function definitions will be declared in the include file.
you should include the following code in your BASIC program:
Code: Select all
$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF
I have the same issue :
This is my routine :
$include DSINCLUDE JOBCONTROL.H
Call DSLogWarn("", DSProjectName)
Call DSLogWarn("", Arg1)
h = DSOpenProject(DSProjectName)
* Ans = DSSetEnvVar(h, "PARTargetTarbel", "5")
Ans = 0
And I have this error when I compile :
Compiling: Source = 'DSU_BP/DSU.SetEnvParam', Object = 'DSU_BP.O/DSU.SetEnvParam'
*****************************************************
Array 'DSOpenProject' never dimensioned.
1 Errors detected, No Object Code Produced.
Can you help me ?
thanks
This is my routine :
$include DSINCLUDE JOBCONTROL.H
Call DSLogWarn("", DSProjectName)
Call DSLogWarn("", Arg1)
h = DSOpenProject(DSProjectName)
* Ans = DSSetEnvVar(h, "PARTargetTarbel", "5")
Ans = 0
And I have this error when I compile :
Compiling: Source = 'DSU_BP/DSU.SetEnvParam', Object = 'DSU_BP.O/DSU.SetEnvParam'
*****************************************************
Array 'DSOpenProject' never dimensioned.
1 Errors detected, No Object Code Produced.
Can you help me ?
thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
DSOpenProject() exists only in the C-callable DataStage API, not in the DataStage BASIC API which is expected only ever to be used from within the context of a project.
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.