View previous topic :: View next topic
|
Author |
Message |
hey_its_me Warnings : 1 New User
Joined: 23 Aug 2006 Posts: 14 Location: USA
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Did your flat file open succesfully? |
|
Back to top |
|
|
prasadvrk
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
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 |
|
|
|