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 send Mainframe Flat file as attachment via E-Mail

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pmulay

New User


Joined: 09 Jul 2010
Posts: 2
Location: India

PostPosted: Sun Jul 11, 2010 8:06 pm    Post subject: JCL to send Mainframe Flat file as attachment via E-Mail
Reply with quote

Need a JCL to send Mainframe flat file as an attachment via Email.
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Jul 11, 2010 8:36 pm    Post subject:
Reply with quote

As your first post and first mistake, try a search first next time.....
More E-mailing an Attachment from Mainframe
email an attachment through JCL
JCL to send a e-mail with zip file attached
How to Email two attachments using SMTP
Do you need additional help?
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Mon Jul 12, 2010 2:15 am    Post subject: Reply to: JCL to send Mainframe Flat file as attachment via
Reply with quote

Also see MVS Mail page.

and Batch SMTP Examples.
Back to top
View user's profile Send private message
pmulay

New User


Joined: 09 Jul 2010
Posts: 2
Location: India

PostPosted: Tue Jul 13, 2010 3:26 pm    Post subject: Re: Reply to: JCL to send Mainframe Flat file as attachment
Reply with quote

i tried the following code but it generated error:

The following JCL code generated error while executing.

//STEP01 EXEC PGM=IKJEFT1B,DYNAMNBR=60
//SYSEXEC DD DISP=SHR,DSN=SYSU.XMITIP.EXEC
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP abc@xyz.com +
SUBJECT 'TEST ATTACHMENT' +
FORMAT XLS +
MSGDS 'Message DSN name' +
FROM abc@xyz.com +
NOMSG +
FILE 'TEST.FILE1' +
FILENAME 'FILE1.XLS'
/*

Error in o/p file:
IKJ56600I UNRECOVERABLE COMMAND SYSTEM ERROR
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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