Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Automatically Zip the txt file in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
useit

Active User


Joined: 05 Oct 2006
Posts: 150

PostPosted: Thu Nov 20, 2014 2:55 pm    Post subject: Automatically Zip the txt file in JCL
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: 8787
Location: Welsh Wales

PostPosted: Thu Nov 20, 2014 2:57 pm    Post subject: Re: Automatically Zip the txt file in JCL
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: 2253
Location: Hampshire, UK

PostPosted: Thu Nov 20, 2014 4:12 pm    Post subject: Reply to: Automatically Zip the txt file in JCL
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: 194
Location: UK

PostPosted: Thu Nov 20, 2014 5:08 pm    Post subject:
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: 8505
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 20, 2014 7:58 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 471
Location: London

PostPosted: Mon Nov 24, 2014 7:03 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 471
Location: London

PostPosted: Mon Nov 24, 2014 7:11 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File transfer issue with end of line ... VINAY PALLELA TSO/ISPF 4 Thu Nov 14, 2019 12:01 am
No new posts File compare, where file has header a... VINAY PALLELA SYNCSORT 8 Thu Nov 07, 2019 5:05 pm
No new posts OMIT first and last column of a pipe-... karthikb_itpro DFSORT/ICETOOL 1 Fri Nov 01, 2019 8:24 pm
No new posts How to place name of the file where t... danielgp89 SYNCSORT 18 Thu Oct 17, 2019 12:55 am
No new posts Need help in parsing record in VBA file guptae DFSORT/ICETOOL 4 Fri Oct 11, 2019 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us