IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Automatically Zip the txt file in JCL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
useit

Active User


Joined: 05 Oct 2006
Posts: 151

PostPosted: Thu Nov 20, 2014 2:55 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 20, 2014 2:57 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Nov 20, 2014 4:12 pm
Reply with quote

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
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Thu Nov 20, 2014 5:08 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8578
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 20, 2014 7:58 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 502
Location: London

PostPosted: Mon Nov 24, 2014 7:03 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 502
Location: London

PostPosted: Mon Nov 24, 2014 7:11 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To pull the file with Date and Time u... TSO/ISPF 17
No new posts regarding COBOL WRITE verb (VB File H... COBOL Programming 6
No new posts COBOL Table data to a flat file with ... COBOL Programming 8
No new posts Compare 2 files replace data in 1st f... DFSORT/ICETOOL 4
No new posts Merging 2 files but ignore duplicate... DFSORT/ICETOOL 1
Search our Forums:

Back to Top