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
 

 

SOC4 - Protection Exception Error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
gopalkulkarni

New User


Joined: 13 Aug 2007
Posts: 12
Location: Pune, India

PostPosted: Mon Oct 12, 2009 12:28 pm    Post subject: SOC4 - Protection Exception Error
Reply with quote

Hi,

While running JCL with VB file as input & output, i am getting error message as protection exception error (SOC4). Input file is in proper format. Please provide me details that, what is protection exception error & how to overcome through this.

Thanks.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Mon Oct 12, 2009 4:42 pm    Post subject:
Reply with quote

S0C4, a protection exception means your program is attempting to read (or write) memory that does not belong to it. While it may be related to a file issue, in most cases it is related to other things such as tables or subprograms.

You resolve it the same way any other Abend is resolved -- use the dump to determine which line of code had the problem, then back track to figure out what caused that line of code to have the problem. Since you did not provide any details, we cannot provide any detailed assistance.
Back to top
View user's profile Send private message
gopalkulkarni

New User


Joined: 13 Aug 2007
Posts: 12
Location: Pune, India

PostPosted: Mon Oct 12, 2009 4:48 pm    Post subject: @ Robert
Reply with quote

Thanks for the information.
This is related to a file issue.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Mon Oct 12, 2009 4:52 pm    Post subject:
Reply with quote

Quote:
This is related to a file issue.
Maybe, maybe not. Good luck in resolving it.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Mon Oct 12, 2009 8:40 pm    Post subject:
Reply with quote

I suggest maybe you should try to change compile options for PL/1 program, if the same error still exists after you tried out every conceivable means.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Mon Oct 12, 2009 8:44 pm    Post subject:
Reply with quote

dejunzhu, where exactly is a statement made that this is a PL/I program? If it is not a PL/I program, your advice is completely wrong -- and certainly misleading without knowing for sure if the program is PL/I.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Mon Oct 12, 2009 8:47 pm    Post subject:
Reply with quote

Robert Sample wrote:
dejunzhu, where exactly is a statement made that this is a PL/I program? If it is not a PL/I program, your advice is completely wrong -- and certainly misleading without knowing for sure if the program is PL/I.

My mistake...
I just provided a feasible method based on my experience, ONLY IF the PGM is written by PL/1 or Cobol language.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Mon Oct 12, 2009 8:51 pm    Post subject:
Reply with quote

and besides, if you google SOC4, you can easily find the following answers to it:


SOC4 abend may be due to the following reasons.

1.Missing SELECT statement ( During Compile time)

2.Bad Subscript/Index

3.Read/Write attempt to unopened file

4.Move data to/from unopened file

5.Missing parameters in called subprogram

SOC7 abend may be due to the following reasond

1.Numeric Operation on Non-numeric data

2.Coding past the maximum allowed subscript.

3.Un-initialize working storage.

Please let me know if there more reasons for the above mentioned abends.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Oct 12, 2009 11:17 pm    Post subject:
Reply with quote

Hello,

Quote:
Please let me know if there more reasons for the above mentioned abends.
Yes, there are. . .

Quote:
and besides, if you google SOC4, you can easily find the following answers to it:
Suggest a better source of info would be the IBM documentation for z/OS System Codes available via the IBM Manuals link at the top of the page. One of the problems with Google is the reader must make sure that the material is correct and applicable. One of the problems with so much material online is that nowdays, much of what is posted (concerning Information Technology) is incomplete, incorrect, or both. . . icon_sad.gif

Please post solutions/suggestions directly related to the topic request and not things that "happened once upon a time" and might be related. . .

Quote:
While running JCL with VB file as input & output
Never going to happen. . . Somewhere in there a program is executed - the jcl does nothing but execute programs. Which program(s) are having this abend - general utilities from some vendor or something written/changed locally?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Tue Oct 13, 2009 12:28 am    Post subject: Reply to: SOC4 - Protection exception error
Reply with quote

Quote:
I suggest maybe you should try to change compile options for PL/1 program, if the same error still exists after you tried out every conceivable means.

changing compilation options, whatever the language, is a useless/illogic approach...
compilation options are standards issued by the organization
and programmers are not allowed to change them

the right approach is to start debugging in the proper way...

Quote:
While running JCL with VB file as input & output, i am getting error message as protection exception error (SOC4). Input file is in proper format. Please provide me details that, what is protection exception error & how to overcome through this.

a topic started in such a way is just going to be a loss of time for everybody
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Tue Oct 13, 2009 2:12 am    Post subject: Reply to: SOC4 - Protection exception error
Reply with quote

Robert said:
Quote:
use the dump to determine which line of code had the problem, then back track to figure out


Agree. Figure out where it abends. Use your debugger to stop just before that instruction and examine the associated variables and base registers.


Quote:
A protection exception means your program is attempting to read (or write) memory that does not belong to it.

You can also have problems if you update storage that does belong to you... but in update in a way that you did not intend to. Actually, I think you can update almost any storage in your private area. If your pointers are bad, you could corrupt storage areas used by other programs (I am guilty of crashing my ISPF sessions).
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am


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