Error: Array 'DSAttachJob' never dimensioned.

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
Amit_111
Participant
Posts: 134
Joined: Sat Mar 24, 2007 11:37 am

Error: Array 'DSAttachJob' never dimensioned.

Post by Amit_111 »

Hi All,

I have written a Job Routine in which I am using the function 'DSAttachJob' to attach the job and then to execute that job using 'DSRunJob' function.

But when I compiled my code I got the following error mesages
Array 'DSAttachJob' never dimensioned.
Array 'DSRunJob' never dimensioned.

I feel such error is given when a routine is not present in a project but these are DS Inbuilt routines right? so they should always be present in the project. Then why is such an error given?
Or is there any way through which these functions needs to be brought in that particular project.
Please help me out in resolving this issue.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need an "include" statement so the compiler knows they are not just arrays in your code:

Code: Select all

$INCLUDE DSINCLUDE JOBCONTROL.H
:idea: A Search for your error "Array 'DSAttachJob' never dimensioned" would have easily turned this information up.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Amit_111
Participant
Posts: 134
Joined: Sat Mar 24, 2007 11:37 am

Post by Amit_111 »

Thanks Craig....

Actually I searched and found that routines were custom built ....so i was trying to find what will be the solution for Buit-in routines but couldn't and entered this post...

Thanks again...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Including user written routines in routines is a horse of a different color. :wink:

If this fixes your problem, please mark the post as Resolved.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply