Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 141

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: 8593
Location: Back in jolly old England

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: 1715
Location: 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: 175
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: 7913
Location: Bellevue, IA

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: 437
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: 437
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us