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

Global Moderator


Joined: 14 Mar 2007
Posts: 10310
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 Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm

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