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
 

 

JCL to ZIP and email PDF files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: JCL to ZIP and email PDF files.
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

Moderator Team Head


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

PostPosted: Mon Sep 13, 2010 2:51 pm    Post subject: Re: JCL to ZIP and email PDF files.
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

Senior Member


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

PostPosted: Mon Sep 13, 2010 3:28 pm    Post subject: Re: JCL to ZIP and email PDF files.
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

Site Director


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

PostPosted: Mon Sep 13, 2010 7:10 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Oct 18, 2010 10:57 pm    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Tue Oct 19, 2010 12:16 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Oct 19, 2010 1:09 am    Post subject: Reply to: JCL to ZIP and email PDF files.
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    Post subject: Re: Reply to: JCL to ZIP and email PDF files.
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

Site Director


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

PostPosted: Tue Oct 19, 2010 8:19 am    Post subject: Reply to: JCL to ZIP and email PDF files.
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    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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


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