IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting SOC4 protection exception while loadind table.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 30, 2008 4:28 pm
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jul 30, 2008 5:17 pm
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jul 30, 2008 7:04 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top