Error while using DSGetStageLinks()

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
snehal15101982
Premium Member
Premium Member
Posts: 11
Joined: Tue May 10, 2011 2:39 am
Location: Bangalore

Error while using DSGetStageLinks()

Post by snehal15101982 »

I am trying to get the Input and Output Links from a job using the build-in function DSGetStageLinks(JobHandle, StageName, Key). While compling the routine, below errors have been returned.

Code:
LinkDtl = DSGetStageLinks(JobHandle, StageName, Key)

Errors:
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'DSGetStageLinks' never dimensioned.

Please provide me inputs to resolve this issue.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It has no idea what DSGetStageLinks is as it has never been defined in your routine. In order to define it, you need to include the "header" file that has that definition in it and all of its siblings. Add this line to the top of your routine:

$INCLUDE DSINCLUDE JOBCONTROL.H
-craig

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