Hello, I am in the process of sending out a fixed width .txt attachment I have an issue every time I try to send the fixed width text document as an attachment through SAS e-mail, the text is all over the place and the format is ruined. Any tips on how to correct this? Thank you in advance for your response! I have the code below (I did alias a lot of my code particularly for the e-mail and file paths, since this code is for my company): DATA _NULL_; FILE "/DialerFile_&Yesterday..txt" LRECL=623 PAD termstr=crlf; SET outlib.final_daily_assignment; Spaces = " "; PUT @01 DataDate @11 " " @12 " " @20 Account @43 " " @45 " " @47 Agent @55 " " @57 " " @65 DPD ; RUN; filename mymail email 'me@gmail.COM' attach=("/DialerFile_&Yesterday..txt" LRECL=32767) content_type="text/plain" subject="Dialer File"; data _null_; file mymail to=("me@gmail.COM") subject="Dialer File" CONTENT_TYPE="text/plain"; put 'Hi,'; put " "; put "The Dialer File for &Yesterday is attached."; put ", "; put "SAS "; run;
... View more