Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us