Capturing particular warning message...

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
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Capturing particular warning message...

Post by vsi »

I am wondering if there is a way to capture a particular warning message.

Let me tell you about what I am trying to acheive here...

we have a third party scheduler and we run our DataStage jobs using that with the help of a shell script. I fail the scheduler job even if there is any warnings from the DataStage job. Now I want to exclude this from certain warnings...Example I am getting the following warning...

add_to_heap() - Unable to allocate memory

In this case there is nothing wrong with the job so I don't want to fail the Scheduler job. I can't check for return code of warnings as that could also eliminate other warnings. so is there any way that I can capture the return code for add_to_heap() warning message ?

Thanks
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Use a message handler to demote it as an informational message. I say fix your job. Tomorrow the same warning might become into a fatal error.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: Capturing particular warning message...

Post by gateleys »

You would probably get more responses in the PX forum.

gateleys
michaeld
Premium Member
Premium Member
Posts: 88
Joined: Tue Apr 04, 2006 8:42 am
Location: Toronto, Canada

Post by michaeld »

you can use DSJOB.EXE with the -log option to dump the log and grep it for the entry you are looking for.
Mike
Post Reply