Hello, I'm attempting to create an email report which includes the results in the email body, and as a HTML attachment. At the moment I'm using a pair of ODS HTML statements and a 'filename email' statement. The code works, but I'm running it through Enterprise Guide 4.1, and it never actually ends until I force it to. The log reports no errors, and if I add anything extra after the email is sent that'll also run fine; Enterprise Guide just doesn't seem to realise that it's reached the end. If I replace the HTML attachment with any other kind the issue goes away, but I'd prefer to keep the attachment as HTML. Here's a cut-down version of the code, which should demonstrate the problem: /* Just make a sample table */ PROC SQL; CREATE TABLE extfile AS SELECT * FROM SASHELP.VEXTFL; QUIT; ods html(id=rpout) body="report.html"; filename doemail email to=("example@place.com") type='TEXT/HTML' subject="Test" from= "example@place.com" attach= ("report.html"); ods html body=doemail ENCODING='utf-8'; PROC PRINT DATA=WORK.extfile; VAR fileref xpath xengine; RUN; ods html(id=rpout) close; ods html close; Does anyone have any idea what might be causing this?
... View more