View previous topic :: View next topic
|
Author |
Message |
chennareddy
New User
Joined: 22 Dec 2005 Posts: 11
|
|
|
|
Hi All,
Am posting this after searching a lot on net as well as on this forum.
My problem is:
Have to receive a PDF file(Which i am able to do)
Zip and email to PDF to a user so that he receives the file as an attachment.(which is causing problem)
When i email the PDF without Zip i am able to send it without any problem.
Can anyone let me know the procedure to email a zipped PDF file(if possible with sample code)
I am not allowed to use any freeware. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
chennareddy wrote: |
When i email the PDF without Zip i am able to send it without any problem. |
Since either a PDF file or a zip file would have to be sent in binary and would both require encoding in MIME, I can't see how it makes a difference which format you send. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
chennareddy wrote: |
I am not allowed to use any freeware. |
What is that you are allowed to use, what third-party product are you using? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What did the ZIP process show in the informational output?
What is the problem after sending the ZIPped file?
Posting "it didn't work" just wastes everyone's time. . . |
|
Back to top |
|
|
Sys Edwin
New User
Joined: 18 Oct 2010 Posts: 7 Location: Canada
|
|
|
|
This is a 3 step process.
First unload your PDS
//JOBCARD
//*
//STEP1 EXEC PGM=IKJEFT01
//SYSLIST DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
XMIT (userid.XMIT) DSNAME('partiti.oned.dataset.name') +
OUTDSNAME('XMIT.unload.name')
/*
Then transmit the output file to your PC. Transmit it as LRECL 80, BLOCKSIZE 3120, type=Binary.
When you receive the dataset unload.name on your PC, create a .zip file and move unload.name into it. Then attach the .zip file to the email and send it.
Some email systems do not allow .zip files as attachments for security, so you may want to rename .zip to .ren2zip, and place instructions in the email to rename it back on receipt. In you email also give instructions about the LRECL, Blocksize and Binary. If they are not exactly the same when it is received into the host, the file will be unusable. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Where did PDS come from? I don't see it in the topic until now. . .
The original question was also about "zip" not "xmit".
It is best to provide a "solution" to the posted request. . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you search this forum for zip email (all terms) you'll find a number of previous topics that discuss exactly how to send emails that have binary attachments (whether zip, pdf, or whatever). |
|
Back to top |
|
|
Sys Edwin
New User
Joined: 18 Oct 2010 Posts: 7 Location: Canada
|
|
|
|
dick scherrer wrote: |
Hello,
Where did PDS come from? I don't see it in the topic until now. . .
The original question was also about "zip" not "xmit".
It is best to provide a "solution" to the posted request. . . |
Sorry misread PDS for PDF |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Sorry misread PDS for PDF |
Not to worry - we're watching
d |
|
Back to top |
|
|
Sys Edwin
New User
Joined: 18 Oct 2010 Posts: 7 Location: Canada
|
|
|
|
dick scherrer wrote: |
Hello,
Quote: |
Sorry misread PDS for PDF |
Not to worry - we're watching
d |
This is what happens when one is too eager to be helpful |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Yup, i've been guilty of the same . . .
Do continue to be helpful.
d |
|
Back to top |
|
|
|