I am trying to capture the links (input) associated with a stage thrugh DS BASIC.
When I write :
x = DSGetStageLinks(<Job Name>,<Stage Name>,1)
I get the following error. Please help.
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'DSGetStageLinks' never dimensioned.
Error with DSGetStageLinks
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 224
- Joined: Tue Sep 24, 2002 7:32 am
- Location: Denver, CO USA
Error with DSGetStageLinks
The function DSGetStageInfo works fine, but that gives me list of input & output links together.I want them separate.
-
- Premium Member
- Posts: 224
- Joined: Tue Sep 24, 2002 7:32 am
- Location: Denver, CO USA
I'm sorry, I've never used DSGetStageLinks. Do you have a $INCLUDE on JOBCONTROL.H?
$INCLUDE DSINCLUDE JOBCONTROL.H
I assume so if DSGetStageInfo worked for you. Otherwise you must be calling DSGetStageLink wrong - it thinks it is an array. I assume <Job Name> and <Stage Name> aren't what you are actually using. They don't look like variables or hard-coded strings.
John
$INCLUDE DSINCLUDE JOBCONTROL.H
I assume so if DSGetStageInfo worked for you. Otherwise you must be calling DSGetStageLink wrong - it thinks it is an array. I assume <Job Name> and <Stage Name> aren't what you are actually using. They don't look like variables or hard-coded strings.
John
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There is no DSGetStageLinks.
You must use DSGetStageInfo to get a list of all the stages, then use DSGetLinkInfo on each link to determine what kind of link it is.
You must use DSGetStageInfo to get a list of all the stages, then use DSGetLinkInfo on each link to determine what kind of link it is.
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Interesting. There's no DEFFUN declaration for it in DSJOBCONTROL.H, which is the basis for my earlier non-existence statement. However, it is cataloged in the VOC file, so I guess it does exist after all.
To use it in a routine you will require your own DEFFUN declaration, or you will need to call it as a subroutine.
The value of the third argument (Key) is documented as being able to segregate the input or output links of the stage.
Can you please post your exact syntax (no metasyntactic markers)? You need to supply the job name and stage name as string literals or string variables.
To use it in a routine you will require your own DEFFUN declaration, or you will need to call it as a subroutine.
The value of the third argument (Key) is documented as being able to segregate the input or output links of the stage.
Can you please post your exact syntax (no metasyntactic markers)? You need to supply the job name and stage name as string literals or string variables.
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.