
how to attach ps to email - JCL - IBM Mainframe Forum
Jul 20, 2010 · Instead of using in-stream DD statements for your email, concatenate the three files (the first file you created with the SMTP commands, the file you want to be an attachment, then the second file you created with the period).
how to send an attatchment with email - JCL - IBM Mainframe …
Mar 10, 2016 · CONTENT-TYPE: TEXT/PLAIN CONTENT-DISPOSITION: ATTACHMENT; FILENAME=abc.mail.file.txt abc.mail.file ***** This is the input file which contains information and I want this to be attacthed in the mail in .txt format The abc.report and abc.mail.file are the fixed block PS files with 300 lrecl.
Convert PS to TXT file using jcl - IBM Mainframe Community
Oct 5, 2021 · Could someone explain the step to send mainframe PS file to our local directory in txt format using JCL batch process. Where is that "local directory"? Use FTP and look up EBCDIC/ASCII operands. Hi Joerg - Thanks for replying. To my local machine. it can be downloads or C:Drive. "C:Users\Public\Documents. Please provide sample jcl format as well.
To send body and attachment both using JCL utility TCPSMTP
Aug 26, 2014 · This example shows the data for a MIME message containing both a text/plain body and a text/plain attachment. FROM: < [email protected] > TO: < [email protected] > Subject: TESTING message with body and attachment.
How to write a JCL to send an email - Stack Overflow
Jun 17, 2020 · Concatenation works fine if all source data has the same DCB. If not, use SORT to create a temporary VB file with LRECL = your longest LRECL + 4. E.g., if you need to merge 80-byte PDS data with 133-byte reports, use SORT to copy everything to a VB file with LRECL=137 and send that to the sysout.
Sending Email thru JCL wid PS file contents as body of email
Nov 21, 2011 · Is it possible to send contents of PS as the body of the email, when sending email thru JCL?. Would appreciate if somebody could guide me on this. _____ thanks rem86
email an attachment through JCL - IBM Mainframe Community
Jun 19, 2008 · I was able to use the code to send an email with attachement as a Text file. Now, my requirement is as follows: I have a huge MS word document (around 20 MB) which was compressed using ZIP and then FTP'ed to a mainframe dataset in Binary format.
Mainframe: JCL SYSTEM UTILITIES (with examples) - Blogger
jcl to copy ps to ps. jcl to copy a pds member to ps (unloading) //step01 exec pgm=iebgener //sysprint dd sysout=* //sysout dd sysout=* //sysdump dd sysout=* //sysut1 dd dsn=work.first.file1, disp=shr //sysut2 dd dsn=work.first.file2, disp=(new,catlg,delete), dcb=(dsorg=ps,recfm=fb, lrecl=80,blksize=800),
How to send mail using JCL - IBM Mainframe Community
Feb 23, 2010 · The mainframe uses SMTP to send email messages. If you read the specifications, you will find that plain text (ASCII characters in the range of 1 to 127 in the collating sequence) is all that can be sent using SMTP in the body of the message.
Sending output to an email destination - IBM
If the output contains text or line data, the output can be sent inline in the body of the email or as an email attachment. To send the output inline, specify the mail-inline-text job attribute. Or, the administrator can select the Inline text and line data field in the printer definition.