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
 

 

Getting S0C4 while running COBOL Datacom program

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

New User


Joined: 10 Nov 2008
Posts: 6
Location: Hyderabad

PostPosted: Thu Feb 26, 2015 8:48 pm    Post subject: Getting S0C4 while running COBOL Datacom program
Reply with quote

Hi all,

I am getting S0C4 abend while i tried to COBOL and datacom program, where the program is trying to read the datacom database sequentially.

This job is executing MC91M00 program. MC91M00 is calling MC91M01 and MC91M02 programs once after the other and MC91M01 and MC91M02 is calling MC91M995 when ever these programs called by MC91M00 program.

MC91M015 - THIS PROGRAM READS THE MECCA CLAIM COMPLETE TABLE (LARGEST ELEMENT) SEQUENTIALLY USING GETIT PROCESSING.
MC91M025 - THIS PROGRAM CLOSES THE MECCA COMPLETE DYNAMIC URT

MC91M015 and MC91M025 program are calling MC91M995 program- THIS PROGRAM PERFORMS THE I/O OF THE MECCA CLAIM COMPLETE DATABASE USING THE DYNAMIC URT.

My issue is -

When i am calling MC91M995(in production with name MC91M99) sub program from MC91M01 program. it looks like, Datacom DB did the OPEN successfully and entered the User Cobol program after the OPEN. The application then builds parameters for Datacom/DB call and makes a successful call to it.It is upon return that a s0c4 occurs in your COBOL.


Pls find the code in atatchment.


Regards,
venkat
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Thu Feb 26, 2015 9:02 pm    Post subject:
Reply with quote

In the future, please refrain from attaching files. Not everyone can download them and it is prohibited at some shops.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Thu Feb 26, 2015 10:33 pm    Post subject: Reply to: Getting S0C4 while running COBOL Datacom program
Reply with quote

Can't be sure of the correct name because of the unexpanded copybooks, but the most likely would be that the area which is defined to store the data from the database is smaller than the largest amount of data that will be placed there,
Back to top
View user's profile Send private message
kalakuntlavenkat

New User


Joined: 10 Nov 2008
Posts: 6
Location: Hyderabad

PostPosted: Fri Feb 27, 2015 6:03 pm    Post subject: Reply to: Getting S0C4 while running COBOL Datacom program
Reply with quote

Sure Terry and Thanks Bill.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Fri Feb 27, 2015 6:30 pm    Post subject: Reply to: Getting S0C4 while running COBOL Datacom program
Reply with quote

Thanks because that was the answer or because you are polite? Future readers and potential answerers may like to know.
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 IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


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