IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Showing S0C4 protection exception error


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Jun 20, 2007 1:55 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Check data with Exception Table DB2 0
No new posts COBOL program changes not showing up ... COBOL Programming 7
Search our Forums:

Back to Top