View previous topic :: View next topic
|
Author |
Message |
useit
Active User
Joined: 05 Oct 2006 Posts: 152
|
|
|
|
hi,
We are automating one of the report for CE user. Since the file is big, we can’t send them through email. We are trying to zip the file but it’s not working in the JCL
can we zip the file using JCL? If so, please share the details
PS – I can’t XCOM the file as user sit in CE!
REGDS,
useit |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
useit wrote: |
We are trying to zip the file but it’s not working in the JCL
can we zip the file using JCL? If so, please share the details |
The problem is line 6 of your code
And that is probably about the best answer you will get until you think about and supply the information required for anyone to be able to help you.
Also, please think of and then use an appropriate forum to post your problem in. Unless you can explain what relevance this has to DF/SORT |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Do [b]not[/] use JCL to zip a file. First, it is better to use a compression program eg pkzip others may be available) as JCL has no facility for doing anything other than letting the OS kno which programs you want executed and the resources required by same. Second, files do not exist on the zOS mainframe (datasets do). |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
The only "CE" that I'm aware of in mainframe terminology is the IBM Customer Engineer.
If you want to send something to IBM, upload it to their website in the usual way. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Mainframe products to zip data sets exist, but they are NOT part of z/OS and must be purchased separately. If your site has not purchased such a product, then the answer to your question is -- no, you cannot zip a data set. If your site has purchased such a product, you need to work with your site support group on how to use it to accomplish your requirement. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Try TERSE which I believe in inbuilt to ZOS. Be careful if you XMIT the tersed file and it has to be uploaded in BINARY otherwise it's unreadable. Also I 'think' there's a BLKSIZE restriction on the output file..c.can't remember what it is.
//TERSE EXEC PGM=AMATERSE,PARM='PACK'
//* ,PARM='SPACK'
//* ,PARM='UNPACK' *to read back the tersed file
//SYSPRINT DD SYSOUT=*
//*
//SYSUT1 DD DISP=SHR,DSN=INPUT.FILE
//SYSUT2 DD DSN=OUTPUT.FILE,
// DISP=(,CATLG) |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
The data set compressed by AMATERSE (produced by PACK or SPACK) must be of fixed or fixed-blocked record format (RECFM) with a record length (LRECL) of 1024 and any legal block size (BLKSIZE). These |
|
Back to top |
|
|
|