Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 2151
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: 33
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 Can we pass cobol pointer to cobol-db... rohanthengal DB2 4 Tue Mar 19, 2019 1:04 pm
No new posts Call DB2 user defined function from C... Ziko13 DB2 5 Thu Mar 14, 2019 4:46 pm
No new posts z/VM z/VSE Get CPU-time of a COBOL Ba... Andi1982 COBOL Programming 3 Mon Mar 11, 2019 3:36 pm
No new posts COBOL Table Question GAPX1 COBOL Programming 3 Thu Mar 07, 2019 9:48 pm
No new posts Additional PCB denied abend prasun007 IMS DB/DC 1 Tue Feb 26, 2019 2:46 am

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