How can a DataStage Job that is in Running State Stop itself

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

How can a DataStage Job that is in Running State Stop itself

Post by admin »

Hi All,

Can anybody please suggest a way for a Job to stop itself, if a check
condition fails within the job.

There is a DSStopJob Function, but it needs to have JobHandle. According to
the document, the only way to get the job handle is through DSAttachJob
function. Since the job will be in the running mode, I can not get the job
handle using the DSAttachJob function.

Can anybody suggest another way to stop the job without aborting using Call
DSLogFatal

Thanks for your help.
Dharmendra


_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

How can a DataStage Job that is in Running State Stop itself

Post by admin »

set a flag and put it in the constraint
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

How can a DataStage Job that is in Running State Stop itself

Post by admin »

Can you use DSJ.ME for the job handle?
Tony

"Patel, Dharmendra" wrote:
Hi All,

Can anybody please suggest a way for a Job to stop itself, if a check
condition fails within the job.

There is a DSStopJob Function, but it needs to have JobHandle. According to
the document, the only way to get the job handle is through DSAttachJob
function. Since the job will be in the running mode, I can not get the job
handle using the DSAttachJob function.

Can anybody suggest another way to stop the job without aborting using Call
DSLogFatal

Thanks for your help.
Dharmendra


_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

How can a DataStage Job that is in Running State Stop itself

Post by admin »

I tried DSJ.ME, the response is DSJE.BADHANDLE (invalid handle).

Thanks,
Dharmendra

-----Original Message-----
From: datastage-users-bounces@oliver.com
[mailto:datastage-users-bounces@oliver.com]On Behalf Of Tony Stark
Sent: Thursday, March 25, 2004 1:05 PM
To: DataStage Users Discussion List
Subject: Re: How can a DataStage Job that is in Running State Stop
itself upon failed condition?


Can you use DSJ.ME for the job handle?
Tony

"Patel, Dharmendra" wrote:
Hi All,

Can anybody please suggest a way for a Job to stop itself, if a check
condition fails within the job.

There is a DSStopJob Function, but it needs to have JobHandle. According to
the document, the only way to get the job handle is through DSAttachJob
function. Since the job will be in the running mode, I can not get the job
handle using the DSAttachJob function.

Can anybody suggest another way to stop the job without aborting using Call
DSLogFatal

Thanks for your help.
Dharmendra


_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Locked