Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


SYNCSORT trick

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
todd_eds
Member


Joined: 30 Jan 2007
Posts: 1

PostPosted: Tue Jan 30, 2007 7:59 pm    Post subject: SYNCSORT trick Reply with quote

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
//*
Back to top
View user's profile Send private message

jayant_tibhe
Member


Joined: 23 Feb 2007
Posts: 1
Location: PUNE

PostPosted: Mon Feb 26, 2007 12:34 pm    Post subject: Reply with quote

I think this will help you

Code:

//*------------------------------------------------------           
//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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Mainframe Simulator 2 Chandra Shekar G R 3251 Wed Jul 21, 2010 12:23 am
rajivtuli2512 View latest post
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 3 Guest 12378 Wed Jul 07, 2010 8:20 am
anilsani285 View latest post
No new posts Mainframe Positions 3 Kyle 4660 Sun Apr 22, 2007 1:01 am
rayala_uday View latest post
No new posts Free Login Id for any Mainframe Server 1 jyoti 3311 Sat Apr 21, 2007 8:14 pm
guru View latest post
No new posts What is the command in mainframe avoid auto signout(TIMEOUT) 5 rajendra.pallala 4773 Fri Jan 26, 2007 12:48 am
seagreg View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB