I'm trying to span the generations and send an email with an attachment to email addresses. I am able to send the email but can't find any documentation to indicate how to create an attachment on the mainframe. I consulted one of our System guys and he said I might have to use an encoder to get this done and append the encoded file in my JCL. I don't know if SYNCSORT provides and encoder or if there is an IBM utility to do this. Any ideas? I am including my current email JCL to show what I currently run.
//SAS25101 EXEC PGM=SYNCSORT
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=xxx.SASUSA.TEST.EMAIL.NAMES,DISP=SHR
//SORTOUT DD SYSOUT=(B,SMTP)
//SYSIN DD *
SORT FIELDS=COPY
//*
SYNCSORT trick
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 1
- Joined: Fri Feb 23, 2007 3:12 pm
- Location: PUNE
I think this will help you
Code: Select all
//*------------------------------------------------------
//S01UCC EXEC PENCORE
//*------------------------------------------------------
//* JCL FOR CREATING LOAD MODULES FOR COBOL PROGRAMS
//*------------------------------------------------------
//*------------------------------------------------------------------
//STEP1 EXEC PGM=IKJEFT01,DYNAMNBR=40,PARM='%SWMAIL'
//SYSPROC DD DSN=PROC name,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY,DCB=BLKSIZE=80
//SYSTSIN DD DUMMY,DCB=BLKSIZE=80
//TO DD *
*MAIL ID*
/*
//CC DD *
/*
//BCC DD DUMMY
//NOTE DD *
FILE (You want to trans)
/*
//ATTACH01 DD DISP=SHR,DSN=CABS.CSV.TR57400.ORDER(LTGSX)
//PARMS DD *
SUBJECT=**
IMPORTANCE=HIGH
SENSITIVITY=COMPANY-CONFIDENTIAL
ATTACHNAME=REQUIRED
ATTACH01=
FROMNAME="JAYANT T"
FROM=*mail ID*
Thanks & Regards,
Jayant S Tibhe
Jayant S Tibhe
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page