Receiving SIGPIPE when using 'todsn' to write from hfs>zo

Discussion of Dovetailed Technologies Dataset Pipes tools
Post Reply
jupam21
Posts: 11
Joined: Fri Dec 17, 2004 11:24 am

Receiving SIGPIPE when using 'todsn' to write from hfs>zo

Post by jupam21 » Fri Apr 16, 2010 9:13 am

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

dovetail
Site Admin
Posts: 1856
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Fri Apr 16, 2010 2:41 pm

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

jupam21
Posts: 11
Joined: Fri Dec 17, 2004 11:24 am

Post by jupam21 » Mon Apr 19, 2010 1:02 pm

After further review it appears that the todsn bin has a zero
byte count. How that happened, I don't know. I will recopy
and try the log function again.

-rwxr-xr-x 1 IBMUSER SYSADMIN 0 Apr 14 09:22 todsn

dovetail
Site Admin
Posts: 1856
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Wed Apr 21, 2010 9:49 am

Perhaps you mistakedly used ">" rather than "|" to pipe input into the tdsn command, which can cause you to overwrite the command file if you have the right permissions.

Post Reply