Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
S0C7 abend while running a Cobol Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
amitc23

New User


Joined: 05 Nov 2014
Posts: 90
Location: India

PostPosted: Tue May 07, 2019 4:06 pm    Post subject: S0C7 abend while running a Cobol Program
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.

Code:
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

Code:
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.

Thanks
Amit
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2298
Location: NY,USA

PostPosted: Tue May 07, 2019 8:01 pm    Post subject:
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: 34
Location: NY

PostPosted: Tue May 07, 2019 9:38 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Abend S000 U0000 REASON=00000000 Uday Kumar Thota IMS DB/DC 3 Wed Oct 30, 2019 8:43 pm
No new posts COBOL -DB2 SQL code to have GROUP BY ... vinu78 DB2 21 Wed Oct 23, 2019 7:00 pm
No new posts Running a REXX exec program using ZOSMF Sakthi344 CLIST & REXX 1 Tue Oct 15, 2019 3:13 pm
No new posts How to handle NULL in COBOL program bhaskar_kanteti COBOL Programming 8 Mon Oct 07, 2019 3:54 pm
This topic is locked: you cannot edit posts or make replies. COBOL/CICS with real time MQ Series u... BPranav CICS 2 Mon Sep 16, 2019 9:19 pm

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