Dear readers, I’m trying out something new that I hope you’ll like. Once a week, for the next couple of months, I’ll post a short excerpt or tip from one of our books. To make things fun, I’m going to randomly select the book by walking into the SAS Press library, closing my eyes, spinning around twice, and then pulling one lucky book off the shelf.
The following excerpt is from SAS Press author Phil Mason’s In the Know: SAS Tips and Techniques from Around the Globe, Second Edition. Copyright © 2006, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Saving graphs without ODS
You can produce graphs and save them to an external file such as a JPEG or GIF. To do so you must do the following:
- Define a fileref to point to the file. For a file on the network, use a filename. For a file on a Web site, use a URL or FTP engine.
- Use GOPTIONS GSFNAME=fileref.
- Use GOPTIONS DEVICE=dev-type ;
- Produce the graph.