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
 

 

Error trapping while running a cobol program in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
mrright

New User


Joined: 07 Jan 2004
Posts: 4

PostPosted: Wed Jan 07, 2004 4:35 pm    Post subject: Error trapping while running a cobol program in batch
Reply with quote

Can anyone help me to trap the error efficiently while running a cobol program in batch?
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jan 08, 2004 3:49 am    Post subject:
Reply with quote

Hi Mrr,

Not sure I get your drift. What do you intend to do when you "trap??" it? Where do you want to trap it? When do you want to trap it?

Regards, Jack.
Back to top
View user's profile Send private message
karpagam

New User


Joined: 14 Feb 2004
Posts: 1

PostPosted: Sun Feb 15, 2004 8:51 pm    Post subject: Re: error traping
Reply with quote

mrright wrote:
can anyone help me to trap the error efficiently while running a cobol prg running thru jcl


U can use sysprint statement within the jcl top trap the error effectively from the spool area.

From

N Karpagam
Back to top
View user's profile Send private message
veenag_gopal

New User


Joined: 14 Nov 2005
Posts: 14
Location: India

PostPosted: Thu Dec 01, 2005 5:15 pm    Post subject: trap the error efficiently
Reply with quote

if it is a logical error use sysprint and try to see the sysout.it will give file related errors.
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Tue May 15, 2007 2:22 pm    Post subject:
Reply with quote

Xpedit the COBOL program, you can trap errors easily.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 15, 2007 8:17 pm    Post subject:
Reply with quote

Hello,

If you post what problem you are having, we can offer suggestions.

Are you trying to trap errors in an existing production program or a program that is in test?
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm


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