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

HELP with PKZIP/EMAIL attachments


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

New User


Joined: 18 Mar 2006
Posts: 22

PostPosted: Sun Jul 16, 2006 8:35 am
Reply with quote

I'm using z/os pkzip to zip a file on the mainframe. Then I'm creating an email msg with it as an attachment, its a batch job going thru smtp server.
The email gets to my mailbox ok but when try to unzip attachment get the following: Cannot Open File: It does not appear to be valid archive.
If I take zipped file and send it to another server, unzips fine. Its just when I use to as an attachment its corrupt I guess.
Here the html part of my email:
--SIMPLE BOUNDARY
CONTENT-DISPOSITION:ATTACHMENT;FILENAME="COS960.zip"

data

--SIMPLE BOUNDARY--

Any ideas?
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Tue Aug 29, 2006 4:14 am
Reply with quote

try this format...

%XMITIP (a@a.COM) -
SUBJECT 'test' -
CC (B@b.COM) -
FROM c@c.COM -
MSGDS 'userid.msg' -
FILE 'user.file1.data' -
FILENAME a.ZIP -
FORMAT ZIP/a.txt
Back to top
View user's profile Send private message
kulreshma

New User


Joined: 11 May 2007
Posts: 4
Location: Mumbai

PostPosted: Tue May 15, 2007 4:50 pm
Reply with quote

Please help me in zipping the file on mainframe, i dont knw how to do it.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 15, 2007 5:22 pm
Reply with quote

Have you reviewed any of the previous topics related to PKZIP?

ibmmainframes.com/viewtopic.php?t=20016
ibmmainframes.com/viewtopic.php?t=17773
ibmmainframes.com/viewtopic.php?t=2857
Back to top
View user's profile Send private message
paray2x

New User


Joined: 28 Dec 2005
Posts: 21

PostPosted: Fri May 18, 2007 4:36 pm
Reply with quote

Hi,

You can download the PKZIP user guide for free from here

Use [URL] BBCode for External Links
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 REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts TXT2PDF and then SMTP email a PDF JCL & VSAM 4
No new posts PKZIP - extracting multiple txt files All Other Mainframe Topics 3
Search our Forums:

Back to Top