DS Functions (was Checking for shutdown request)

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

DS Functions (was Checking for shutdown request)

Post by admin »

I think the manuals are getting a little bit behind the product; perhaps Ascential need more people in their documentation department. This is why I check out the header files in DSINCLUDE each time theres a new release, and try to identify whats new. For example, in release 4.0 there are two InfoType keys for DSGetJobInfo() not in the help or the manual:
DSJ.JOBCONTROL (1 = stop, 2 = pause, 3 = resume)
DSJ.JOBPID (process ID of the process running the job)
For DSGetStageInfo(), there is one:
DSJ.VARLIST (comma-separated list of stage variable names)

-----Original Message-----
From: Moderator [mailto:moderator@oliver.com]
Sent: Thursday, 31 May 2001 11:47
To: Ray Wurlod
Cc: daspayth@wwc.com; informix-datastage@oliver.com
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
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

Ray,

I looked in the DSINCLUDE item and saw the stop/pause/resume but didnt make the connection. I only had a couple of minutes to check it out so I followed my intuition and assumed that it would be in the RT_STATUS record but not knowing exactly I tested it by issuing a stop and checking what was
updated in the record. Sometimes the most obvious is apparent in the most
trivial way.

Regards

-Allen
----- Original Message -----
From: "Ray Wurlod"
To:
Sent: Wednesday, May 30, 2001 7:04 PM
Subject: DS Functions (was Checking for shutdown request)


> I think the manuals are getting a little bit behind the product;
> perhaps Ascential need more people in their documentation department.
> This is why
I
> check out the header files in DSINCLUDE each time theres a new
> release,
and
> try to identify whats new.
> For example, in release 4.0 there are two InfoType keys for
> DSGetJobInfo() not in the help or the manual:
> DSJ.JOBCONTROL (1 = stop, 2 = pause, 3 = resume)
> DSJ.JOBPID (process ID of the process running the job)
> For DSGetStageInfo(), there is one:
> DSJ.VARLIST (comma-separated list of stage variable names)
>
> -----Original Message-----
> From: Moderator [mailto:moderator@oliver.com]
> Sent: Thursday, 31 May 2001 11:47
> To: Ray Wurlod
> Cc: daspayth@wwc.com; informix-datastage@oliver.com
> 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
>
>
>
Locked