Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Code to SMTP a CSV file in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
maruniral

New User


Joined: 11 Sep 2007
Posts: 12
Location: India

PostPosted: Tue Oct 16, 2007 6:09 pm    Post subject: Code to SMTP a CSV file in JCL
Reply with quote

I'm using the following code to send a CSV file:

Code:

//SENDNOTE EXEC PGM=IEBGENER                                         
//SYSIN    DD DUMMY                                                   
//SYSPRINT DD SYSOUT=*                                               
//SYSUT2   DD SYSOUT=(A,SMTP)                                         
//SYSUT1   DD *                                                       
HELO MVSHOST                                                         
MAIL FROM:<Niral.X.Maru@xxx.COM>                                 
RCPT TO:<Niral.X.Maru@xxx.COM>                                 
DATA                                                                 
FROM:   <Niral.X.Maru@xxx.COM>                                 
TO:       <Niral.X.Maru@xxx.COM>                                 
CC:      <Niral.X.Maru@xxx.COM>                                 
SUBJECT:  MW Attendance Report - TEST MAIL FROM MAINFRAME             
MIME-Version: 1.0                                                     
Content-type: multipart/mixed;                                       
              boundary="<< boundary_identifier >>"                   
--<< boundary_identifier >>                                           
Content-Type: Text/plain; charset="us-ascii"                   
Content-Transfer-Encoding: 7bit                                 
Niral,                                                         
                         
       This is a test email from mainframe to send attachements
       along with the body of the message.                     
       Please find the same.                                   
Best Regards!                                                   
Niral                                                           
--<< boundary_identifier >>                                     
Content-Type: text/html; charset="us-ascii"                     
Content-Type: application/octet-stream; name="status.csv"   
Content-Transfer-Encoding: 7bit                                 
/*                                                             
//         DD DSN=HL.TEST.DATA,DISP=SHR                   
//         DD *                                                 
--<< boundary_identifier >>                                     


My file is a "," seperated file. Problem is that i dont get a proper file (it comes as blanks) when i send it in a comma seperated format.

It i remove the comma seperation then i get the data properly. Can someone explain whats wrong.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 16, 2007 8:34 pm    Post subject:
Reply with quote

Hello,

Is the dcb information for both files the same or are they of different formats?
Back to top
View user's profile Send private message
maruniral

New User


Joined: 11 Sep 2007
Posts: 12
Location: India

PostPosted: Tue Oct 16, 2007 8:41 pm    Post subject: Reply to: Code to SMTP a CSV file in JCL
Reply with quote

Its the same. I think if u have diff information then it would give you an error.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Oct 16, 2007 8:53 pm    Post subject: Reply to: Code to SMTP a CSV file in JCL
Reply with quote

This is an odd one. Since commas are common characters, I find it hard to believe that their presence or absence in the data has any relevance. The resolution, if one can be determined, will prove interesting.
Back to top
View user's profile Send private message
maruniral

New User


Joined: 11 Sep 2007
Posts: 12
Location: India

PostPosted: Tue Oct 16, 2007 10:14 pm    Post subject: Reply to: Code to SMTP a CSV file in JCL
Reply with quote

yeah i too find it a lil weird that bcause of a comma its not working....can you try it at ur end with some test file and see if the same issue persists ??
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us