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

How to abend cobol programs throug return codes


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinivas.u

New User


Joined: 07 Jun 2004
Posts: 19

PostPosted: Thu Jun 10, 2004 5:19 pm
Reply with quote

1.how to abend cobol programs throug return codes
if possiable plz tell me
Back to top
View user's profile Send private message
sada_polaris

New User


Joined: 24 May 2006
Posts: 13

PostPosted: Wed May 31, 2006 3:21 pm
Reply with quote

Say if you need to abend the program with the return code of 20(Say).
Do the following

Code:

MOVE 20 TO RETURN-CODE.
STOP RUN.


In my shop we have a program called CANCEL(Assembly program)
where we will call it if we need to terminate the program immediately.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jun 01, 2006 2:22 pm
Reply with quote

Hi,

Look for some standard routine (programs) to do this on your shop.

Abending a program may involve generating some logs as well.

Well, this purely depends on the requirements and standards on your shop.


Thanks,
Parikshit
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts ISAM and abend S03B JCL & VSAM 10
Search our Forums:

Back to Top