email - Using data step to append custom text to ODS stream -


I'm trying to print a table to an email destination and then finally putting some custom comments. I get the message when I try and run the code below:

  Error: The file is in use,  

My code is:

  filename mymail = email content_type = "text / html" = ("myemail@myemail.com") = ("myemail@myemail.com") topic = "my report"; Ods html3 body = mymail style = sasweb; Proc print data = sashelp.class noobs; Run; Data_null_; Mymail file; Put "I want to appear below this email."; Run; Ods off html3; File name mymail explicit;  

I have tried googling for help, but the search terms are so obscure that it is difficult to narrow it with this specific problem. Thanks for the help.

Edit: Just to clarify - I want all the results of the body of the email. I do not want the results to be sent as an attachment. In addition, if you comment only the data phase in the above code, then the email works fine. I was not able to test these two methods in real email, but they (replica)

error: file is in use message ..

  file name "C: /temp/test.html"; Ods html3 body = mymail style = sasweb; Proc print data = sashelp.class noobs; Footnote "Approach 1: Let me see this at the bottom of the email."; Run; Data_null_; File prints; "Approach 2: I also want to make it appear in the bottom part of the email."; Run; Ods off html3; File name mymail explicit;  

According to the use of the file print context in the data phase:

Print is a reserved fileref that directs the output Which is produced by any put statement in the same file, which is produced by production SAS processes.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -