Page 1 of 1

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

Posted: Thu Mar 25, 2004 1:18 pm
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

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

Posted: Thu Mar 25, 2004 1:53 pm
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

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

Posted: Thu Mar 25, 2004 3:04 pm
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

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

Posted: Thu Mar 25, 2004 3:12 pm
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