Ray is correct. There is some undocumented features to DSGetJobInfo... The following code segment will do the same as what I provided earlier.. So this is supported in the current release - albeit undocumented.
-Allen
***
ForSomeTime = 5 ;! Seconds
Loop
Result = DSGetJobInfo(DSJ.ME,DSJ.JOBCONTROL)
Until Result = 1 Do
! your loop logic to execute goes here
Sleep ForSomeTime
Repeat
**
----- Original Message -----
From: "Moderator"
To: "Ray Wurlod"
Cc: ;
Sent: Wednesday, May 30, 2001 6:47 PM
Subject: Re: Checking for shutdown request
>
>
> I feel like an altar boy trying to discuss Theology with the Arch
> Bishops--I dont even know which questions are worthy and which will
> cause eyes to roll upwards in disbelief. Oh, well. Such is the risk
> of digging into a new field of endeavor. Thanks in advance for your
> collective patience and muffled chuckles.
>
> Ok. Ive looked at the DSGetJobInfo docs in the Server manual,
> chapters 12 and 14. It seems I can query "myself" as DSJ.ME in
> argument 1 (hJob). But I dont see any reference to DSJ.JOBCONTROL in
> the doc. (DSJ.JOBCONTROLLER, yes, but not DSJ.JOBCONTROL).
>
> So am I looking for a return value from DSGetJobInfo that tells me if
> a stop request has been issued? Or a current "wave number" (whatever
> that is ) with which to apply Allens technique?
>
> Or have I lost the thread of the discussion already?
>
> Thanks for your help.
>
> Regards,
>
> Clif
>
>
> Wednesday, May 30, 2001, 7:46:55 PM, you wrote:
>
> > Allen,
>
> > How did you determine that field 6 of the JOB record is RT_STATUSnn
> > is
job
> > control?
> > I presume you looked in DSINCLUDE/RT_STATUS.H
>
> > Did you also look in DSINCLUDE/JOBCONTROL.H where you learn that
> > DSGetJobInfo(hJob, DSJ.JOBCONTROL) returns this information?
>
> > Mayhap this is an easier approach?
>
> > Regards,
> > Ray
>
>