Problem with DSGetStageInfo
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 20
- Joined: Tue Jun 13, 2006 5:16 am
- Location: Pune
Problem with DSGetStageInfo
Hi DS Gurus,
1.
I want to write a server routine in which want to know the stage status,
which name is passed as parameter to routine.
The routine contains following code,
Ans = DSGetStageInfo(DSJ.ME, StageName, DSJ.STAGESTATUS).
But when I compile the above routine I get following error:
Compiling: Source = 'DSU_BP/DSU.TestStageStatus', Object = 'DSU_BP.O/DSU.TestStageStatus'
0002 Ans = DSGetStageInfo(DSJ.ME, StageName, DSJ.STAGESTATUS)
^
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'DSGetStageInfo' never dimensioned.
WARNING: Variable 'DSJ.ME' never assigned a value.
2 Errors detected, No Object Code Produced.
2.
When I try to write above code in the job control the I get the stage status as 8.
Can anybody tell me where I can get the meaning of status code?
Thanks,
Sanket...
1.
I want to write a server routine in which want to know the stage status,
which name is passed as parameter to routine.
The routine contains following code,
Ans = DSGetStageInfo(DSJ.ME, StageName, DSJ.STAGESTATUS).
But when I compile the above routine I get following error:
Compiling: Source = 'DSU_BP/DSU.TestStageStatus', Object = 'DSU_BP.O/DSU.TestStageStatus'
0002 Ans = DSGetStageInfo(DSJ.ME, StageName, DSJ.STAGESTATUS)
^
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'DSGetStageInfo' never dimensioned.
WARNING: Variable 'DSJ.ME' never assigned a value.
2 Errors detected, No Object Code Produced.
2.
When I try to write above code in the job control the I get the stage status as 8.
Can anybody tell me where I can get the meaning of status code?
Thanks,
Sanket...
SANKET SARAPH
You need to add this line to the beginning of your code:
Code: Select all
$INCLUDE DSINCLUDE JOBCONTROL.H
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The file also contains the requisite statement which was missing in the original code so that the program takes DSGetStageInfo as a routine and not an array.
Code: Select all
Deffun DSGetStageInfo(JobHandle, StageName, InfoType)
-
- Participant
- Posts: 20
- Joined: Tue Jun 13, 2006 5:16 am
- Location: Pune
You need to check for the other possible return values, as documented in the routine. These are DSJE.NOTINSTAGE and/or DSJE.BADSTAGE (which happen to be error codes -7 and -8)
Last edited by ArndW on Tue Nov 14, 2006 8:08 am, edited 1 time in total.