MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending a csv format sheet as an email attachment

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Austere
Beginner


Joined: 29 Jun 2005
Posts: 2
Topics: 1

PostPosted: Wed Jun 29, 2005 7:03 pm    Post subject: Sending a csv format sheet as an email attachment Reply with quote

[color=darkblue]Hi,

i'm glad to join this forum, i've been surfing in it for some time & it's quite interesting.
The problem i have is, i can't send a comma delimited dataset (sequential file) thru email as a csv format spread-sheet attachment.
i've searched the forum's database and found some stuff but couldn't fix my problem! i could send plain txt attachments but other formats no.
The point is we aren't supposed to use REXX anymore over here so i need an alternative.

Thanks in advance,
Austere.
[/color]
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 30, 2005 5:10 am    Post subject: Reply with quote

Austere,

Can't you send the attachment as txt document and once you recieve it can't you open with excel? Since your file is comma delimted it will automatically format the cells.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Austere
Beginner


Joined: 29 Jun 2005
Posts: 2
Topics: 1

PostPosted: Thu Jun 30, 2005 8:26 am    Post subject: Reply with quote

Hi,

yes, this would be the last resort.
i tried using the following code:
Code:

//JS020   EXEC PGM=WAAPDSUT                     
//SYSUT1    DD DSN=XXXX.XXXX(HEADER),         
//             DISP=(SHR,KEEP,KEEP)             
//          DD DSN=XXXX.XXXX.XXXX,     => This is the dataset having the data (comma delimited)       
//             DISP=(SHR,KEEP,KEEP)             
//SYSUT2    DD SYSOUT=A,DEST=(XXXXXXX,NETISMTP) 
//SYSPRINT  DD SYSOUT=*                         

where the HEADER part is:
HELO SYS.XXXX.COM                                                       
MAIL FROM: <XXXX.XXXX@XXXX.COM>                                     
RCPT TO: <XXXX.XXXX@XXXX.COM>                                               
DATA                                                                   
FROM: <XXXX.XXXX@XXXX.COM>                                         
TO: <XXXX.XXXX@XXXX.COM>                                                   
SUBJECT: XXXX DATA SPREAD-SHEET                               
MIME-VERSION: 1.0                                                       
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="BOUNDLINE"                     
THIS IS A MULTI-PART MESSAGE IN MIME FORMAT.                           
                                                                       
--BOUNDLINE                                                             
CONTENT-TYPE: TEXT/PLAIN; CHARSET=US-ASCII                             
CONTENT-TRANSFER-ENCODING: 7BIT                                         
                                                                       
ATTACHMENT IS REQUESTED REPORT                                         
                                                                       
--BOUNDLINE                                                             
CONTENT-TYPE: TEXT/PLAIN; CHARSET=US-ASCII; NAME="XXXX-SHEET.CSV"       
CONTENT-TRANSFER-ENCODING: 7BIT                                         
CONTENT-DISPOSITION: INLINE                                             

i managed to get an email with a .csv sheet attached but the file is empty.
How could i get it to fill it in??

Thanks,
Austere.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group