Problems with tranferring flat file from mainframe to Outlook as CSV file

5 pts.
Tags:
CSV
Email
Flat files
Mainframe
Microsoft Excel
Microsoft Outlook
MIME
I am trying to e-mail a plain text comma delimited flat file from the mainfram to Outlook. I have the coding working to transfer the file but when the file arrives in outlook the first character on each line is an '&'. When EXCEL trys to open the file it generates an error message that this is an invalid file type for excel to open. Here is the coding I use to transfer the file to Outlook //STEP01 EXEC PGM=IEBGENER //SYSUT1 DD * HELO CSXB1TCP.CSXT.CSX.COM MAIL FROM: <RICHARD_BARNETT@CSX.COM> RCPT TO: <RICHARD_BARNETT@CSX.COM> DATA SUBJECT: LC ADAMS TMMI SPREADSHEET MIME-VERSION: 1.0 CONTENT-DISPOSITION: ATTACHMENT;FILENAME="INSPECTIONS.XLS" CONTENT-TYPE: TEXT/PLAIN /* //* =========================================================* //* FILE TO SEND: // DD DISP=SHR,DSN=A4324.SYSTEM.WIDE.TMMI.YR2008 //* =========================================================* //* DO NOT MODIFY PAST THIS POINT //* // DD * . QUIT //SYSUT2 DD SYSOUT=A,DEST=TCPBSMTP //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* // Here is how the comma delimited file looks on the mainframe: "ASHLAND","MECHANICAL","Y",0,0,0,0,0,0,0,1 "ATKINSON","MECHANICAL","",0,0,1,0,0,0,0,0 Here is how the comma delimited file looks after being sent to Outlook: &"ASHLAND ","MECHANICAL","Y",0,0, 0,0,0,0,0,1 &"ATKINSON ","MECHANICAL"," ",0,0,1, 0,0,0,0,0 What cause the '&' to be inserted on each line? Any help will be greatly aprreciated Thanks in advance Rick Barnett

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following