SYNCSORT trick

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
todd_eds
Member
Posts: 1
Joined: Tue Jan 30, 2007 7:30 pm

SYNCSORT trick

Post by todd_eds » Tue Jan 30, 2007 7:59 pm

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
//*

jayant_tibhe
Member
Posts: 1
Joined: Fri Feb 23, 2007 3:12 pm
Location: PUNE

Post by jayant_tibhe » Mon Feb 26, 2007 12:34 pm

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

Post Reply

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



Other References
Mainframe Tools and others