VSAM file write problem - write system error detected?

General discussion on the JZOS batch launcher and toolkit
Post Reply
jnavarro
Posts: 2
Joined: Sat Nov 04, 2006 6:04 am

VSAM file write problem - write system error detected?

Post by jnavarro »

I'm attempting to write multiple records into a VSAM KSDS file. I see the 1st record is written successfully but my job ends with the ZFileException below.

I open the VSAM file with:
ubFile = new Zfile("//DD:UNITBILL","ab+,type=record");

I write to it with:
ubFile.write(ubRec,0,464);


BillingVSAMFile.insert() | ZfileException abendcode = 8
- ERROR - | 2006-11-04 05:52:04.275 | [main] | UnitBillingVSAMFile.insert() | ZfileException errno = 65
- ERROR - | 2006-11-04 05:52:04.276 | [main] | UnitBillingVSAMFile.insert() | ZfileException errnomsg = EDC5065I A write system error was detected.
- ERROR - | 2006-11-04 05:52:04.278 | [main] | UnitBillingVSAMFile.insert() | ZfileException message = //DD:UNITBILL: fwrite failed - EDC5065I A write system error was detected. ERRNO=65 ERRNO2=0x594003d LAST_OP=401 ABEND_CODE=0x8 ABEND_RC=8
- ERROR - | 2006-11-04 05:52:04.279 | [main] | UnitBillingVSAMFile.insert() | ZfileException errono2 = 93585469


In my proc, DD:UNITBILL is defined as:
//UNITBILL DD DSN=&STATV..PA90700.ORDER.VSAM,DISP=SHR


ZUtil trace data:
05:52:03 ZTOOLS(N): log level has been set to: T
05:52:03 ZTOOLS(T): -> ZFileImpl(//DD:UNITBILL, ab+,type=record)
05:52:03 ZTOOLS(T): <- ZFileImpl()
05:52:03 ZTOOLS(T): -> open()
05:52:03 ZTOOLS(T): -> initialize()
05:52:03 ZTOOLS(T): recfm=U
05:52:03 ZTOOLS(T): <- initialize()
05:52:03 ZTOOLS(T): name=//DD:UNITBILL, mode=ab+,type=record, recordCount=0, fileLength=0
.
.(STDERR,STDOUT writes)
.
05:52:04 ZTOOLS(T): <- write()
05:52:04 ZTOOLS(T): -> write(3A5B4810, 464, 0, 464)
05:52:04 ZTOOLS(T): name=//DD:UNITBILL, mode=ab+,type=record, recordCount=1, fi
05:52:04 ZTOOLS(T): bytes written=464
.
.(STDERR,STDOUT writes)
.
(no more mention of UNITBILL)
05:52:04 ZTOOLS(T): <- write()
05:52:04 ZTOOLS(T): -> flush()
05:52:04 ZTOOLS(T): <- flush()
05:52:04 ZTOOLS(T): -> close()
05:52:04 ZTOOLS(T): <- close()
05:52:04 ZTOOLS(T): -> ~ZFileImpl()
05:52:04 ZTOOLS(T): <- ~ZFileImpl()
05:52:04 ZTOOLS(T): -> cancelWaitForMvsCommand()
05:52:04 ZTOOLS(T): -> CNCLWAIT()
05:52:04 ZTOOLS(T): Cancellation ECB=31f7023c
05:52:04 ZTOOLS(T): <- WAIT4CMD()
05:52:04 ZTOOLS(T): CancellationECB was posted, returning null05:52:04 ZTOOLS(T
05:52:04 ZTOOLS(T): <- CNCLWAIT()
05:52:04 ZTOOLS(T): <- cancelWaitForMvsCommand()
JZOSVM - JVM completed with exit(99).


Would much appreciate any help.
jnavarro
Posts: 2
Joined: Sat Nov 04, 2006 6:04 am

problem resolved

Post by jnavarro »

I wasn't changing the key to the vsam file :oops:
Post Reply