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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


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