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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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