Page 1 of 1

Zipping using Unix System Services

PostPosted: Fri May 02, 2008 6:39 pm
by nikeoittus
Hi, I'm using BPXBATCH to try to zip a file on the mainframe using Unix System Services and I'm getting an error when defining the output file. I've attempted to find in manuals what to define for the DCB info but had no luck and it appears that BPXBATCH isn't like say Platinum which will define the output file for you. The zip works when I first FTP the file down to the Unix partition and then zip but I'd rather do it as a single step -vs- a multi step

Thanks for any help

the error is

IEC141I 013-34,IGG0191I,PSNZO01,ZIP,STDOUT,8673,TST028

The JCL looks as follows

//PSNZO01 JOB (PSNZO,00,T),'PSNZO',
// CLASS=Q,MSGCLASS=X,
// REGION=0M,NOTIFY=PSNZO
/*JOBPARM SYSAFF=HD02
//*
//ZIP EXEC PGM=BPXBATCH,
// PARM='PGM /u/util/bin/zip'
//STEPLIB DD DSN=CEE.SCEERUN,DISP=SHR
//TMBYPASS DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STDIN DD DISP=SHR,DSN=PSNZO.TEST.FILE(0)
//STDOUT DD DSN=PSNZO.TEST.FILE.ZIP2,
// UNIT=TSTDA,SPACE=(CYL,(100,100),RLSE),
// DISP=(NEW,CATLG,DELETE)
//STDERR DD SYSOUT=*

Re: Zipping using Unix System Services

PostPosted: Fri May 02, 2008 6:59 pm
by CICS Guy
nikeoittus wrote:The zip works when I first FTP the file down to the Unix partition and then zip but I'd rather do it as a single step -vs- a multi step
is there a STDOUT dataset created when you do it in two steps?

IEC141I 013-34,IGG0191I,PSNZO01,ZIP,STDOUT,8673,TST028

ZIP is the module, STDOUT is the dsn and 34 is the rc....

34
One of the following was detected:
An OPEN macro instruction was issued for a data set with BLKSIZE and BUFL equal to 0. The system determined that it had to obtain buffers but was unable to do so.
RECFM was specified with both A and M attributes.
The following combination was specified: QSAM, LRECL=0, and a RECFM that was not V or VB.
The following combination was specified: RECFM = V or VB and LRECL greater than the quantity BLKSIZE minus 4.
The following combination was specified: QSAM and BLKSIZE=0.
The following combination was specified: RECFM not variable or undefined and LRECL greater than BLKSIZE.
The following combination was specified: BFTEK=A,RECFM=VBS, and LRECL=0

Re: Zipping using Unix System Services

PostPosted: Fri May 02, 2008 7:22 pm
by nikeoittus
Using the 2 step method. After FTP'ng the file to the Unix and performing the zip I get the following.

JCL

//USSBAT2 EXEC PGM=BPXBATCH,REGION=0M,
// PARM='SH zip -l -a /home/PSNZO/f2.zip /home/PSNZO/f2.cv'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//*

Output

STDOUT

Translating to ASCII...
adding: home/psnzo/f2.cv (deflated 100%)

STDERR

zip warning: -l used on binary file


Going back to my original post one of the techies had at one time a LIKE=XXXX statement on the output file of some jcl that they had however that xxxx dataset has since been deleted and thus my search to idenfity what the recfm and lrecl should be.

Thanks

Re: Zipping using Unix System Services

PostPosted: Fri May 02, 2008 7:41 pm
by CICS Guy
Ouch....

Any currently existing STDOUT datasets that you can get the attributes from or refer to with another LIKE?

Re: Zipping using Unix System Services

PostPosted: Fri May 02, 2008 8:17 pm
by nikeoittus
Nope - Thats why I'm posting here. My Google fu isn't very strong the last couple of days and I can't find a reference to a suggested recl/blksize for my zip output

Re: Zipping using Unix System Services

PostPosted: Fri May 02, 2008 9:06 pm
by dick scherrer
Hello,

What dcb parameters have you tried?

I suspect that there may be multiple "right" answers. . .