The error you are getting would indicate that there is no output on stdout pipe from unzip. As you suggest, it looks like unzip from stdin (using "-") doesn't work. You might try this as an equivalent alternative for reading from stdin:
fromdsn -b //DD:IN | unzip -p /dev/fd0 | todsn -s ISO8859-1 -t IBM-1047 //DD:OUT On Fri, Jul 17, 2009 at 2:41 AM, Vikesh Bhoola<[email protected]> wrote: > Bob, thanks for confirmation regarding the MVS (cmsmvs) build of unzip. > I did see the same error when executing the MVS version in USS, but was > wondering if it perhaps was the syntax. > > I managed to compiled the unix version which works well > Just a change in the README.zOS: > gmake -f unix/Makefile ZOS > results in: > gmake: *** No rule to make target `ZOS'. Stop. > Should be gmake -f unix/Makefile zos > > > Tried piping using COZBATCH, to read/write to MVS datasets but I don't get > the DD://IN part right. > > //INFOZIP EXEC PGM=COZBATCH > //STEPLIB DD DISP=SHR,DSN=hlq.COZ130.LOADLIB > //IN DD DISP=SHR,DSN=userid.INPUT.ZIP > //OUT DD DISP=(,CATLG),DSN=userid.OUTPUT.NEW, > // SPACE=(TRK,(7500,15000),RLSE),RECFM=FB,LRECL=171,BLKSIZE=0 > //STDOUT DD SYSOUT=* > //STDIN DD * > fromdsn -b //DD:IN | > unzip -p - | > todsn -s ISO8859-1 -t IBM-1047 //DD:OUT > > I get the unzip usage message & this : > todsn(DD:OUT)ÝE¨: error: no input data available > CEE5213S The signal SIGPIPE was received. > CoZBatchÝI¨: returning rc=exitcode=103 > > > This STDIN works, but means the input must be USS file : > unzip -p /tmp/INPUT.zip | > todsn -s ISO8859-1 -t IBM-1047 //DD:OUT > > Any ideas ? > >> I'll let you know as soon I have time to figure out what the latest problem >> is. I'm really sorry this is taking so long. Thanks for your input. > > Bob, no worries for unzip, the real need was ZIP which is resolved thanks to > you. > I'm just testing to verify it works, should its requirement later arise. > > > Kind Regards, > Vikesh Bhoola > Please Note: This email and its contents are subject to our email legal > notice which can be viewed at http://www.sars.gov.za/Email_Disclaimer.pdf > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

