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: 1249
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: 7315

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

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 pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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