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

S0C7 abend while running a Cobol Program

IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message

New User

Joined: 05 Nov 2014
Posts: 95
Location: India

PostPosted: Tue May 07, 2019 4:06 pm
Reply with quote

Hi Friends

I am getting a 0c7 abend while running a batch Job. I looked at the address and offset on the SYSOUT, but the offset does not seem to exist on the compile listing of the module which is indicated.

The system detected a data exception (System Completion Code=0C7).             
From compile unit X13R100 at entry point #Calc000000007 at compile unit offset +000000A2 at address 18C0F51A.                                                 

I compiled X13R100 before this and the program seems to end at 00EE8

008477  00EE1E  MOVE                         008480  00EE34  DISPLAY           
008485  00EE6C  DISPLAY                      008487  00EEA0  DISPLAY           
008493  00EEE8  EXIT                                                           
                    CONSTANT AREA                                               
 010768 (+0)      00CCDDFF 00000000 E5F8C2C2 D9F1F0F0 00000000 00000000 E5F8E4C2

I am not sure about the address #Calc000000007 (Not seen this before), generally it starts with 0000001.

Any help is greatly appreciated.

Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator

Joined: 21 Sep 2010
Posts: 2803
Location: NYC,USA

PostPosted: Tue May 07, 2019 8:01 pm
Reply with quote

Usually the reason for SOC7 is an un-initialized numeric item. Look out OFFSET or LIST option selected in Compilation and how about searching +000000A2?
Double check all your numeric moves and add possible displays if you find this difficult tracing it back.
Back to top
View user's profile Send private message
John Del

New User

Joined: 27 Apr 2012
Posts: 42
Location: NY

PostPosted: Tue May 07, 2019 9:38 pm
Reply with quote

SOC7's are usually fairly easy, but sometimes they can be stealthy.

Unless you want to use the old school dump offsets to drill down to your offending statement, I would cheat and, if available to you, use the TEST compiler option to get a formatted dump from the abending program along with the offending line number that corresponds to the compile listing.

Refer to the applicable IBM Cobol Programming Guide if interested.
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 -> COBOL Programming


Similar Topics
Topic Forum Replies
No new posts How to get the message id thats trigg... Java & MQSeries 0
No new posts Tilde Characters Changing to COLONs i... CLIST & REXX 22
No new posts IDCAMS listcat service using cobol JCL & VSAM 1
No new posts Make cobol variable value a variable COBOL Programming 3
No new posts how to convert and use 1 bit hex-numb... COBOL Programming 10
Search our Forums:

Back to Top