Hi,
I have one issue as follows.In Datastage control jobs i have written a code as below inside a while loop.
If count > 3 then
Call Dslogwarn("Failure");
exit
end if
While i am running the job the count become >3 and the job is giving the Call Dslogwarn("Failure") message in director log .Normaly it shoud exit and job should stop .But it still showing status "running " in director .what is the reason for that.
Job is showing running status after exit
Moderators: chulett, rschirm, roy
OK..But i think when it finds the exit it will exit from the loop..and continue with the statements outside the loop...ArndW wrote:Issuing a call to DSLogWarn() does not trigger a job failure, that's what DSLogFatal() is used for. ...
After exicuting that eithr it will abort or finish ?But here it showing "Running"Status infinately..?
When you execute DSLogFatal() it does not return; the program immediately terminates. It is good practice to code in a loop exit, but it is not required. When DSLogFatal() is called by DS/BASIC code when not running as part of a job, i.e. when being tested in a user written routine, it will return to the caller, which is why I always code as though program control returns to the caller.