Warning Messages in Job Log while Attaching Job

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
nishadkapadia
Charter Member
Charter Member
Posts: 47
Joined: Fri Mar 18, 2005 5:59 am

Warning Messages in Job Log while Attaching Job

Post by nishadkapadia »

Hi,

I attach a job using DSAttachJob with "ERRWARN" as errormode.

Code: Select all

Job_Handle = DSAttachJob('xxx_Seq_xxx',DSJ.ERRWARN)
If not(Job_Handle) Then 
   Call DSLogInfo(....)
   Continue 
End
Else....
The problem is that if a job is not runnable then there are warning messages in the individual's job log (xxx_Seq_xxx). I failed to understand why? , or maybe i am missing something obvious here.

There are warning messages in the sequencer from where the routine is executed, which is fine and expected.

Thanks all in advance.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

What is the warning messages and what state the job was in?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I had noticed the DSJ.ERRWARN key does that when I used it in the past and never really gave it a second thought. It does make some sense as this routine can be called from a program that is not running as part of a job so the log of the job being opened is a logical place to put the message.

If you don't want that message in the log then DSJ.ERRNONE is better and see if a valid handle is returned.
Last edited by ArndW on Thu Oct 26, 2006 12:26 am, edited 1 time in total.
nishadkapadia
Charter Member
Charter Member
Posts: 47
Joined: Fri Mar 18, 2005 5:59 am

Post by nishadkapadia »

Thanks All. It works fine with DSJ.ERRNONE

P.S had been off for vacatn , so late reply to this .
Post Reply