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

Senior Member


Joined: 14 Mar 2007
Posts: 10479
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: 2504
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: 2504
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 Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

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