Can we use DSOpenProject, DSOpenJob in basic routines?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
vigneshra
Participant
Posts: 86
Joined: Wed Jun 09, 2004 6:07 am
Location: Chennai

Can we use DSOpenProject, DSOpenJob in basic routines?

Post by vigneshra »

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!
Vignesh.

"A conclusion is simply the place where you got tired of thinking."
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

vineshgra,

you should include the following code in your BASIC program:

Code: Select all

   $IFNDEF JOBCONTROL.H
      $INCLUDE DSINCLUDE JOBCONTROL.H
   $ENDIF
and the function definitions will be declared in the include file.
fuscage
Participant
Posts: 1
Joined: Fri Feb 13, 2009 4:34 am

Post by fuscage »

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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