Zipping using Unix System Services



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Zipping using Unix System Services

Postby nikeoittus » Fri May 02, 2008 6:39 pm

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=*
nikeoittus
 
Posts: 3
Joined: Fri May 02, 2008 6:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Zipping using Unix System Services

Postby CICS Guy » Fri May 02, 2008 6:59 pm

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
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Zipping using Unix System Services

Postby nikeoittus » Fri May 02, 2008 7:22 pm

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
nikeoittus
 
Posts: 3
Joined: Fri May 02, 2008 6:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Zipping using Unix System Services

Postby CICS Guy » Fri May 02, 2008 7:41 pm

Ouch....

Any currently existing STDOUT datasets that you can get the attributes from or refer to with another LIKE?
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Zipping using Unix System Services

Postby nikeoittus » Fri May 02, 2008 8:17 pm

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
nikeoittus
 
Posts: 3
Joined: Fri May 02, 2008 6:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Zipping using Unix System Services

Postby dick scherrer » Fri May 02, 2008 9:06 pm

Hello,

What dcb parameters have you tried?

I suspect that there may be multiple "right" answers. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post