IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL to send Mainframe Flat file as attachment via E-Mail


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Sun Jul 11, 2010 8:36 pm
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

Global Moderator


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

PostPosted: Mon Jul 12, 2010 2:15 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
Search our Forums:

Back to Top