how can we suppress the warnings in sequence
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 111
- Joined: Thu Jun 01, 2006 5:12 am
- Location: Detroit
how can we suppress the warnings in sequence
Hi,
How can we suppress teh warnings in sequence
I am useing wait for fail activity if file is not there it's giving one warning...pls any one tell me how can we suppress this in sequnce
How can we suppress teh warnings in sequence
I am useing wait for fail activity if file is not there it's giving one warning...pls any one tell me how can we suppress this in sequnce
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 111
- Joined: Thu Jun 01, 2006 5:12 am
- Location: Detroit
By using message handler i am able to suppress the warnings in jobs' but at the same time i am not able to suppress the warnings in sequences...i am not getting that option in sequnce but in job's i am able to do.....do i need to take any precautions....pls help meray.wurlod wrote:Using a message handler. ...
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 111
- Joined: Thu Jun 01, 2006 5:12 am
- Location: Detroit
Thx Kesav,keshav0307 wrote:in the sequence general property there is option "log warning after activities that finish with status other then OK", uncheck that.
That's fine and i am getting one warning like this
Service_Agent_LaborRates1_Seq..JobControl (DSWaitForFile): Check for file '/apps/dsadm/BAPI/ZZSALR1_RETURN.txt' failed
the wait forfailactivity is checking for file and if file is not there it's giving this warning it's saying failed.....pls tell me how i can suppress this
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
You could suppress it by waiting longer. How about setting the wait to 1758 years and thirty three minutes. Or better yet take it out, why is it waiting for a file that doesn't arrive? You could write your own waitforfile command using a BASIC routine and a sleep loop. Your sequence job is presenting it as a warning because it is something that should be investigated by support.
You cannot suppress warning messages in a sequence job because the message handler only works for parallel jobs.
You cannot suppress warning messages in a sequence job because the message handler only works for parallel jobs.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Exactly. Either ensure the file arrives on time or don't worry about the warning as it is a legitimate one, worry about why the file didn't arrive.vmcburney wrote:Your sequence job is presenting it as a warning because it is something that should be investigated by support.
Why do you feel the need to 'suppress' it? Explaining the 'why' may help more than concentrating on the 'what'. Too many times, people come here with a very specific question - how do I do X? After struggling with the answer, we typically find that by taking a step back to see why they are asking the question - what the bigger issue is that they are trying to solve - there are other, mo betta ways to accomplish what they are trying to do. Perhaps the same would help here.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
A while back i wrote a unix script and a basic routine to do almost the same thing. The routine wont work for you but the script will help. Check out thispost
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
A simple check for existence (no timeout) can be effected with an Execute Command activity.
Windows: DIR /B pathname
UNIX: ls -1 pathname
where pathname is the pathname of the file whose existence is to be checked for.
Create an OK trigger and an Otherwise trigger on the Execute Command activity, and make sure that "Log warnings after activities that finish with status other than OK" is disabled.
Windows: DIR /B pathname
UNIX: ls -1 pathname
where pathname is the pathname of the file whose existence is to be checked for.
Create an OK trigger and an Otherwise trigger on the Execute Command activity, and make sure that "Log warnings after activities that finish with status other than OK" is disabled.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Finding the solution in the course of my regular activities. Client asked whether there was a way that did not generate a warning (as opposed to suppressing, since message handlers don't apply to job sequences).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.