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
 

 

Showing S0C4 protection exception error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
hey_its_me
Warnings : 1

New User


Joined: 23 Aug 2006
Posts: 14
Location: USA

PostPosted: Wed Jun 20, 2007 12:07 pm    Post subject: Showing S0C4 protection exception error
Reply with quote

Hi all,

When I tried to write the contents of a table to a flat file it showed S0C4 abend.

Please find that this is the error which it is showing up:

Program and Entry Point Name: TEST01
At Address. . . . . . . . : 13600000 (Module TEST01 offset X'0')
Program Length. . . . . . : X'1F82'
Program Language. . . . . : COBOL (Compiled using COBOL for OS/390 & VM V2 R2
M2 on 2007/06/20 at 02:08:21)

Machine Instruction . . . . : D2097000A1D5 MVC 0(10,R7),469(R10)
At Address. . . . . . . . : 1360152A (Program TEST01 offset X'152A')
AMODE . . . . . . . . . . : 31
Failing Operand . . . . . : First operand (Store Protected)
First Operand Address . . : 1368EFE0 (Module TEST01 program TEST01 FILE
SECTION BLF=0000 + X'0', symbol OUT-REC, source
line # 40 - 7073824 bytes of storage addressable)
First Operand Length. . . : 10
First Operand Storage . . : C9C4E2D5 C1C1E3C5 E2E3 *IDSNAATEST*
Second Operand Address. . : 1360031D (Module TEST01 program TEST01 + X'31D' -
7658723 bytes of storage addressable)
Second Operand Length . . : 10
Second Operand Storage. . : 40404040 40404040 4040 * *


Please find that the SQLCODE is found to be returning zero value.
It is returning a write error with a file status of 90, while writing to flat file
Please advise me on the aforesaid.

With Regards,
Anil Kumar
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Jun 20, 2007 1:55 pm    Post subject:
Reply with quote

Did your flat file open succesfully?
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Wed Jun 20, 2007 7:28 pm    Post subject:
Reply with quote

Quote:
Failing Operand . . . . . : First operand (Store Protected)

From this we can assume that the file is protected some how.
Did you open the file in OUTPUT mode?

I did not find S0C4 anywhere in the listing, can you provide the exact spool detail where it threw the S0C4 abend.
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
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


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