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 SOC4 protection exception while loadind table.

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

New User


Joined: 29 Jul 2008
Posts: 4
Location: Bangalore

PostPosted: Wed Jul 30, 2008 4:20 pm    Post subject: Getting SOC4 protection exception while loadind table.
Reply with quote

Hi! This is your First post in our Forums! So please be sure to 1) Use meaningful and descriptive Topic Title 2) Try to post your query in the relevant forum category 3) Make sure your query is not already posted and solved in our forums, Use the Search facility and avoid Reposts! If you are following the above rules, delete this message and post your query here!

Hi All,

I am getting the following exception when I am loading a table from a VSAM file.

The system detected a protection exception (System Completion Code=0C4)
From compile unit TEST5 at entry point TEST5 at compile unit offset +000008D6 at entry offset +000008D6 at address 1A500BFE.

Can any one suggest a solution???
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Jul 30, 2008 4:28 pm    Post subject: Reply to: Getting SOC4 protection exception while loadind ta
Reply with quote

Look for any warnings/errors in the compile or linkage editor output
Look at the diagnostic info in the sysout
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jul 30, 2008 5:17 pm    Post subject: Re: Getting SOC4 protection exception while loadind table.
Reply with quote

It sounds like your table is too small to completely load the file contents and your table-index/table-subscript has gone out of range.

You can either increase the table-size in WS or write a small Assembler sub-program, which issues a SHOWCB Macro against the file, returning the number of records. Then, use CEEGTST to acquire the amount of storage you need and you're done. However, you'll have to place the table into LINKAGE.

Using this dynamic allocation technique would virtually eliminate any future need to expand this table.

HTH....

Bill
Back to top
View user's profile Send private message
madhu.nambeesan

New User


Joined: 29 Jul 2008
Posts: 4
Location: Bangalore

PostPosted: Wed Jul 30, 2008 6:16 pm    Post subject:
Reply with quote

Thanks for ur info. There are no errors/warnings in the complile or linkage editor.
In sysout its showing the exception mentioned in the prev post.

I checked ceedump also, there it is giving Inaccessible storage for the table I am using.
Back to top
View user's profile Send private message
madhu.nambeesan

New User


Joined: 29 Jul 2008
Posts: 4
Location: Bangalore

PostPosted: Wed Jul 30, 2008 6:22 pm    Post subject:
Reply with quote

Hi Bill,

I am using the Dynamic allocation technique only. My VSAM file is huge and it has around 35 million records.

While calling the Dynamic allocation sub routine if I am passng a table length less than 650,000 it is working fine. But if I increase this count it will fail with SOC4 exception.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jul 30, 2008 7:04 pm    Post subject: Re: Getting SOC4 protection exception while loadind tabl
Reply with quote

What version/release of COBOL are you running?

IIRC, less than Enterprise COBOL and not OS/VS COBOL, the largest LINKAGE SECTION "01" level length is 16,777,215 bytes (16MB-1).

Bill
Back to top
View user's profile Send private message
madhu.nambeesan

New User


Joined: 29 Jul 2008
Posts: 4
Location: Bangalore

PostPosted: Wed Jul 30, 2008 9:20 pm    Post subject:
Reply with quote

Hi Bill/Enrico,

The issue is resolved now. It was because I was not allocating enough storage for the job. I just increased the REGION parm in the JCL and its working fine now.

Thanks very much for your guidance.

Madhu
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm


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