In the Animate Snowfall in SAS article of The Do Loop blog, Rick Wicklin provided a program for making a winter greeting card.
When I run this in SAS Enterprise Guide, I get these messages in the log:
ods printer file='C:\AnimGif\Snow\Anim.gif';
/* images saved into animated GIF */
NOTE: Writing ODS PRINTER output to DISK destination
"C:\AnimGif\Snow\Anim.gif", printer "gif".
ods html select none;
/* suppress screen output */
ERROR: The HTML destination is not active; no select/exclude lists are available.
Despite the NOTE, ods printer file='C:\AnimGif\Snow\Anim.gif'; is not created.
I do not want HTML output. I would want to insert this gif into an email. How do I do that?
If I can save the file, I can copy-paste it. Would it retain its animation properties?
Did you modify the ODS PRINTER path in your program to a path your computer has access to?
I'm guessing there's no folder called AnimGif under your C drive so that is the cause of your error.
I modified the ODS PRINTER line to be a path I had access to and the file was generated. I did get ERRORS regarding the ODS HTML but it doesn't impact the results in this case. You can then navigate to the location specified and copy paste that into an email or as an attachment. If you embed a GIF in a presentation it does work. It also works in a browser and can be sent via IM to work on a phone or tablet. Limitations of this are the limitations to GIF files and is not SAS specific.
@pink_poodle wrote:
In the Animate Snowfall in SAS article of The Do Loop blog, Rick Wicklin provided a program for making a winter greeting card.
When I run this in SAS Enterprise Guide, I get these messages in the log:
ods printer file='C:\AnimGif\Snow\Anim.gif'; /* images saved into animated GIF */ NOTE: Writing ODS PRINTER output to DISK destination "C:\AnimGif\Snow\Anim.gif", printer "gif". ods html select none; /* suppress screen output */ ERROR: The HTML destination is not active; no select/exclude lists are available.
Despite the NOTE, ods printer file='C:\AnimGif\Snow\Anim.gif'; is not created.
I do not want HTML output. I would want to insert this gif into an email. How do I do that?
If I can save the file, I can copy-paste it. Would it retain its animation properties?
Did you make sure that you have licence to SAS/IML ?
I did, the license is valid.
Did you modify the ODS PRINTER path in your program to a path your computer has access to?
I'm guessing there's no folder called AnimGif under your C drive so that is the cause of your error.
I modified the ODS PRINTER line to be a path I had access to and the file was generated. I did get ERRORS regarding the ODS HTML but it doesn't impact the results in this case. You can then navigate to the location specified and copy paste that into an email or as an attachment. If you embed a GIF in a presentation it does work. It also works in a browser and can be sent via IM to work on a phone or tablet. Limitations of this are the limitations to GIF files and is not SAS specific.
@pink_poodle wrote:
In the Animate Snowfall in SAS article of The Do Loop blog, Rick Wicklin provided a program for making a winter greeting card.
When I run this in SAS Enterprise Guide, I get these messages in the log:
ods printer file='C:\AnimGif\Snow\Anim.gif'; /* images saved into animated GIF */ NOTE: Writing ODS PRINTER output to DISK destination "C:\AnimGif\Snow\Anim.gif", printer "gif". ods html select none; /* suppress screen output */ ERROR: The HTML destination is not active; no select/exclude lists are available.
Despite the NOTE, ods printer file='C:\AnimGif\Snow\Anim.gif'; is not created.
I do not want HTML output. I would want to insert this gif into an email. How do I do that?
If I can save the file, I can copy-paste it. Would it retain its animation properties?
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.