I am using COZBATCH to get a z/OS dataset using 'fromdsn' to a hfs
file. Then I am running the INFO-ZIP ported utility to create a zip file.
My next step is to send the zip file back to a z/OS dataset. When the
todsn executes a Unix SIGPIPE is received and the file does not transfer to z/OS.
Also, a separate question I have is if it is possible to send output
to the JES Internal Reader using todsn. (e.g. a IEBGENER job).
Below I have copied the JCL and logs from the attempt. Thanks in advance for your assistance.
JCL
//RUNZIP EXEC PGM=COZBATCH
//IN DD DSN=JUPAM21.PA.YEARLY.CCF0028.REPORT,DISP=SHR
//OUT DD DSN=JUPAM21.CCF0028.REPORT.ZIP,DISP=SHR
//SYSPRINT DD *
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STDIN DD *
coz_bin="/u/cozsysc/coz-1.5.2/bin"
info_zip="/u/Infozip/bin"
set -A RESOLVER_TRACE
#rm /SYSTEM/tmp/foo &&
$coz_bin/fromdsn -t 819 //DD:IN >/SYSTEM/tmp/ccf0028.rpt &&
$info_zip/zip -v -D /SYSTEM/tmp/ccf0028.zip /SYSTEM/tmp/ccf0028.rpt
cat /SYSTEM/tmp/ccf0028.zip |
$coz_bin/todsn -b //DD:OUT
JCL JOB LOG:
IEF375I JOB/JUPAM21X/START 2010106.0948
IEF376I JOB/JUPAM21X/STOP 2010106.0949 CPU 0MIN 11.58SEC SRB 0MIN 00.06
adding: SYSTEM/tmp/ccf0028.rpt (in=38380907) (out=4592902) (deflated 88%)
total bytes=38380907, compressed=4592902 -> 88% savings
fromdsn(DD:IN)ÝN¨: 645004 records/85785532 bytes read; 38380907 bytes written i
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
CEE5213S The signal SIGPIPE was received.
CoZBatchÝN¨: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights re
CoZBatchÝN¨: version 1.5.2 2009-12-08
CoZBatchÝI¨: executing progname=login-shell="-/bin/sh"
CoZBatchÝI¨: returning rc=exitcode=0
Receiving SIGPIPE when using 'todsn' to write from hfs>zo
It looks like some of your output is missing - for example, we don't even see the copyright message from todsn.
Can you enable tracing prior to your todsn command and send us the log? (to info@dovetail.com).
Also, it is slightly more efficient to use redirection over cat pipe.
For example:
...
# enable tracing
export COZ_LOG=F
$coz_bin/todsn -b //DD:OUT < /SYSTEM/tmp/ccf0028.zip
Can you enable tracing prior to your todsn command and send us the log? (to info@dovetail.com).
Also, it is slightly more efficient to use redirection over cat pipe.
For example:
...
# enable tracing
export COZ_LOG=F
$coz_bin/todsn -b //DD:OUT < /SYSTEM/tmp/ccf0028.zip