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
 
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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