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

JCL to ZIP and email PDF files.


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

New User


Joined: 22 Dec 2005
Posts: 11

PostPosted: Mon Sep 13, 2010 2:11 pm
Reply with quote

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

Global Moderator


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

PostPosted: Mon Sep 13, 2010 2:51 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 13, 2010 3:28 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 13, 2010 7:10 pm
Reply with quote

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

New User


Joined: 18 Oct 2010
Posts: 7
Location: Canada

PostPosted: Mon Oct 18, 2010 10:50 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Oct 18, 2010 10:57 pm
Reply with quote

Hello,

Where did PDS come from? I don't see it in the topic until now. . . icon_confused.gif

The original question was also about "zip" not "xmit".

It is best to provide a "solution" to the posted request. . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Oct 19, 2010 12:16 am
Reply with quote

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

New User


Joined: 18 Oct 2010
Posts: 7
Location: Canada

PostPosted: Tue Oct 19, 2010 12:24 am
Reply with quote

dick scherrer wrote:
Hello,

Where did PDS come from? I don't see it in the topic until now. . . icon_confused.gif

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Oct 19, 2010 1:09 am
Reply with quote

Hello,

Quote:
Sorry misread PDS for PDF
Not to worry - we're watching icon_wink.gif

d
Back to top
View user's profile Send private message
Sys Edwin

New User


Joined: 18 Oct 2010
Posts: 7
Location: Canada

PostPosted: Tue Oct 19, 2010 3:54 am
Reply with quote

dick scherrer wrote:
Hello,

Quote:
Sorry misread PDS for PDF
Not to worry - we're watching icon_wink.gif

d

This is what happens when one is too eager to be helpful icon_redface.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Oct 19, 2010 8:19 am
Reply with quote

Yup, i've been guilty of the same . . . icon_smile.gif

Do continue to be helpful.

d
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top