DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Thu Mar 25, 2004 1:18 pm Reply with quote    Back to top    

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

_________________
PLEASE READ
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
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Thu Mar 25, 2004 1:53 pm Reply with quote    Back to top    

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

_________________
PLEASE READ
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.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Thu Mar 25, 2004 3:04 pm Reply with quote    Back to top    

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

_________________
PLEASE READ
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.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Thu Mar 25, 2004 3:12 pm Reply with quote    Back to top    

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

_________________
PLEASE READ
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.
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours