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

Error trapping while running a cobol program in batch


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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
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
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
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Tue May 15, 2007 8:17 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
Search our Forums:

Back to Top