View previous topic :: View next topic
|
Author |
Message |
madhu.nambeesan
New User
Joined: 29 Jul 2008 Posts: 4 Location: Bangalore
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Look for any warnings/errors in the compile or linkage editor output
Look at the diagnostic info in the sysout |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
madhu.nambeesan
New User
Joined: 29 Jul 2008 Posts: 4 Location: Bangalore
|
|
|
|
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 |
|
|
madhu.nambeesan
New User
Joined: 29 Jul 2008 Posts: 4 Location: Bangalore
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
madhu.nambeesan
New User
Joined: 29 Jul 2008 Posts: 4 Location: Bangalore
|
|
|
|
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 |
|
|
|