Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How do I display an error every time the job abends ???
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

Active Member


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

PostPosted: Thu Jan 31, 2008 9:20 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Jan 31, 2008 9:32 pm    Post subject: Reply to: How do I display an error every time the job abend
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    Post subject: Reply to: How do I display an error every time the job abend
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Feb 01, 2008 12:56 pm    Post subject: Reply to: How do I display an error every time the job abend
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 01, 2008 1:08 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Feb 01, 2008 2:20 pm    Post subject: Reply to: How do I display an error every time the job abend
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Feb 01, 2008 2:32 pm    Post subject: Reply to: How do I display an error every time the job abend
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 01, 2008 2:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us