I tried creating some graphs with data tips, based on this example:
SAS/GRAPH(R) 9.3: Reference, Third Edition
I run my program in batch on Windows, SAS 9.3.
Works great - BUT:
I'm sure these things are really simple, but darned if I can figure it out. Can some kind person help?
I don't have 9.3 but 9.2 has an option reached by using Tools>Option>Preferences>Results , uncheck box "View results as generated"
Remember to turn it back on afterwards!
ODS HTML path sets where your output files are going but if you want the graphics in a folder other than that with the HTML then you'll need to work with other options to ensure the references in the HTML point to that folder.
For question #2, you want the "gpath=" option on the ODS HTML statement. From the SAS 9.3 ODS User's Guide:
"specifies the location for all graphics output that is generated while the destination is open. Use this option when you want to write graphics output files to a location different that specified by the PATH= option for markup files."
Karl
Thanks, the GPATH= option on the ODS HTML statement lets me put all the graphics files away in a separate subdirectory.
For the other problem - having to respond while it displays all the graphs on screen, even though running in 'noninteractive' or 'batch' mode:
GOPTIONS NOPROMPT;
helps, insofar as the graphs just flash by on screen without requiring any user interaction.
I found that if I also specify:
GOPTIONS DEVICE=HTML;
then I don't even see anything on screen at all, which is great, although then I get a duplicate set of graphics files in (by default) a 'sasgraph' subdirectory (I think that can be changed using the GSFNAME= option).
If I could have
that would be perfect. But what I have now is good enough for my purposes.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.