Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us