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: 4648
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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