IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How do I display an error every time the job abends ???


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krishnasaikiah

New User


Joined: 14 Mar 2007
Posts: 24
Location: gurgaon

PostPosted: Thu Jan 31, 2008 9:11 pm
Reply with quote

Hi all,

I want to know how do I throw an error message into the system log everytime the job abends or the job fails because of JCL error.

I have thought of a solution but is not working as I had desired.

//STEP EXEC PGM=IEBGENER,
COND=ONLY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
JOb ended in error
/*
//*

Can anybody please suggest me a solution??
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Jan 31, 2008 9:20 pm
Reply with quote

I don't know how to do it, but I would not expect every line of output from a job to be written to the system log, so no reason this line would be either.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jan 31, 2008 9:32 pm
Reply with quote

I don't understand the problem. Any job that fails with a JCL error IS automatically written to the syslog, usually with the IEF453I or IEFC452I error messages.

However, as far as I know, the only way to write information into the syslog is via a WTO (Write-To-Operator) function from a program.
Back to top
View user's profile Send private message
krishnasaikiah

New User


Joined: 14 Mar 2007
Posts: 24
Location: gurgaon

PostPosted: Fri Feb 01, 2008 11:16 am
Reply with quote

I want to get the message displayed in the console and not log. Sorry for the inconvenience.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 01, 2008 12:56 pm
Reply with quote

I would say that displaying messages on the console is pretty useless,
the system consoles are usually in roll delete mode and with the usual traffic
messages tend to disappear and
very seldom the operation team have a chance to see them
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 01, 2008 1:08 pm
Reply with quote

What is the requirement for this request ?
Back to top
View user's profile Send private message
krishnasaikiah

New User


Joined: 14 Mar 2007
Posts: 24
Location: gurgaon

PostPosted: Fri Feb 01, 2008 2:12 pm
Reply with quote

Hi all,

I need to have the message in the console in case of a job abend as because we keep monitoring the console part for support.

In case of a job abend in production it becomes very easy if we get a message on the console otherwise until we get a call from the user we dont know if a job has abended.

Thanks
Krishna
Back to top
View user's profile Send private message
krishnasaikiah

New User


Joined: 14 Mar 2007
Posts: 24
Location: gurgaon

PostPosted: Fri Feb 01, 2008 2:17 pm
Reply with quote

hi all,

Another related problem.

Suppose I have two input datasets. One dataset exists and the other doesnt. And I have declared disposition for both the datasets as SHR. So during execution the job gets failed. In this scenario , I want a last step to get executed where the message will be displayed in the console that my job got abended.

Is there any way of handling this type of problem???

Thanks
Krishna
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 01, 2008 2:20 pm
Reply with quote

You are asking again the same thing,
adding the unrelated consideration about two datasets with disp SHR

Keep wondering about the logic

just a note...
if a job gets flushed for jcl error no step will be executed
so nobody will be able to issue any message
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 01, 2008 2:32 pm
Reply with quote

I kindly ask...

will You please explain the difference between looking at a user message
and at for example
Code:
IEF450I any_jobname any_stepname - ABEND=S806 U0000 -  REASON=00000004
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 01, 2008 2:55 pm
Reply with quote

If you have a scheduling package, then any abnormal terminations are flagged in there.

Why not watch that screen instead of trying to make things more complicated.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top