There are no relevant messages (that I can find) in the joblogs. However, I did find something interesting when I used ZUtil.setLoggingLevel(ZUtil.LOG_TRACE). Here's the STDERR output (modified to hide actual names, of course):
Code: Select all
01:59:31 ZTOOLS(T): -> ~ZFileImpl()
01:59:31 ZTOOLS(T): <- ~ZFileImpl()
01:59:31 ZTOOLS(T): -> ZFileImpl(//'SYS4.MYPDS($MEM1)', w)
01:59:31 ZTOOLS(T): <- ZFileImpl()
01:59:31 ZTOOLS(T): -> open()
01:59:31 ZTOOLS(T): -> initialize()
01:59:31 ZTOOLS(T): recfm=FB
01:59:31 ZTOOLS(T): <- initialize()
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM1)', mode=w, recordCount=0, fileLength=0
01:59:31 ZTOOLS(T): <- open()
01:59:31 ZTOOLS(T): -> write(2335DBD8, 8192, 0, 8192)
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM1)', mode=w, recordCount=1, fileLength=8192
01:59:31 ZTOOLS(T): bytes written=8192
01:59:31 ZTOOLS(T): <- write()
01:59:31 ZTOOLS(T): -> write(2335DBD8, 8192, 0, 8192)
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM1)', mode=w, recordCount=2, fileLength=16384
01:59:31 ZTOOLS(T): bytes written=8192
01:59:31 ZTOOLS(T): <- write()
01:59:31 ZTOOLS(T): -> write(2335DBD8, 8192, 0, 1014)
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM1', mode=w, recordCount=3, fileLength=17398
01:59:31 ZTOOLS(T): bytes written=1014
01:59:31 ZTOOLS(T): <- write()
01:59:31 ZTOOLS(T): -> close()
01:59:31 ZTOOLS(T): <- close()
01:59:31 ZTOOLS(T): -> ~ZFileImpl()
01:59:31 ZTOOLS(T): <- ~ZFileImpl()
01:59:31 ZTOOLS(T): -> ZFileImpl(//'SYS4.MYPDS($MEM2)', w)
01:59:31 ZTOOLS(T): <- ZFileImpl()
01:59:31 ZTOOLS(T): -> open()
01:59:31 ZTOOLS(T): -> initialize()
01:59:31 ZTOOLS(T): recfm=FB
01:59:31 ZTOOLS(T): <- initialize()
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM2)', mode=w, recordCount=0, fileLength=0
01:59:31 ZTOOLS(T): <- open()
01:59:31 ZTOOLS(T): -> write(23418098, 8192, 0, 8192)
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM2)', mode=w, recordCount=1, fileLength=8192
01:59:31 ZTOOLS(T): bytes written=8192
01:59:31 ZTOOLS(T): <- write()
01:59:31 ZTOOLS(T): -> write(23418098, 8192, 0, 8192)
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM2)', mode=w, recordCount=2, fileLength=16384
01:59:31 ZTOOLS(T): bytes written=8192
01:59:31 ZTOOLS(T): <- write()
01:59:31 ZTOOLS(T): -> write(23418098, 8192, 0, 929)
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM2)', mode=w, recordCount=3, fileLength=17313
01:59:31 ZTOOLS(T): bytes written=929
01:59:31 ZTOOLS(T): <- write()
01:59:31 ZTOOLS(T): -> close()
01:59:31 ZTOOLS(T): <- close()
01:59:31 ZTOOLS(T): -> ~ZFileImpl()
01:59:31 ZTOOLS(T): <- ~ZFileImpl()
01:59:31 ZTOOLS(T): -> ZFileImpl(//'SYS4.MYPDS($MEM3)', w)
01:59:31 ZTOOLS(T): <- ZFileImpl()
01:59:31 ZTOOLS(T): -> open()
01:59:31 ZTOOLS(T): -> initialize()
01:59:31 ZTOOLS(T): recfm=FB
01:59:31 ZTOOLS(T): <- initialize()
01:59:31 ZTOOLS(T): name=//'SYS4.MYPDS($MEM3)', mode=w, recordCount=0, fileLength=0
01:59:31 ZTOOLS(T): <- open()
01:59:31 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
(and so on for many pages....)
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:32 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:32 ZTOOLS(T): <- write()
01:59:52 ZTOOLS(T): -> ZFileImpl(//'SYS4.MYPDS($MEM4)', w)
01:59:52 ZTOOLS(T): <- ZFileImpl()
01:59:52 ZTOOLS(T): -> open()
01:59:52 ZTOOLS(T): <- open()
01:59:52 ZTOOLS(T): -> ~ZFileImpl()
01:59:52 ZTOOLS(T): <- ~ZFileImpl()
01:59:52 ZTOOLS(T): -> write(234C7178, 8192, 0, 8192)
01:59:52 ZTOOLS(T): <- write()
com.dovetail.jzos.ZFileException: //'SYS4.MYPDS($MEM4)': fopen failed -
EDC5045I The operation attempted could not be performed because the
file was open. ERRNO=45 ERRNO2=0x594003d LAST_OP=604
ABEND_CODE=0x562 ABEND_RC=98
at com.dovetail.jzos.ZFile.fopen(Native Method)
at com.dovetail.jzos.ZFile.<init>(ZFile.java:243)
Notice that on the members that worked, after each write() statement, there were two lines showing the record count/file size and the bytes written. On the member that fails, however, those lines do not occur. Also, notice that the $MEM3 stream is never closed before continuing on to MEM4, which would explain the exception on fopen.
I don't know what this all means, since I can't see the native code (or at least I don't know where to look for it), but this certainly seems odd...