Page 1 of 1

Error while using DSGetStageLinks()

Posted: Thu Jan 24, 2013 7:05 am
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.

Posted: Thu Jan 24, 2013 7:43 am
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