dear all,
I am trying to define my own name for generated graphs (instead of gchartx) but it seems not to work with GSFNAME:
any idea ??
THX!!
PS.
how to copy/paste sas code into this page ??
Hi.
First thing: you should never give a real path on your machine.
Second, when I ran your code (replicated below) it worked.
So please provide some log file, or something more.
ods listing close;
*define the path once, no need for quotations, just simply \\my_path_where_I_keep_things\...
%let path = your_path;
ods html file = "my_graph.htm"
path = "&path." (url = none)
gpath = "&path." (url = none);
filename my_graph "&path.\my_graph.png";
goptions reset = global gunit = pct border cback = white htext = 2 ftext = "Arial"
device = png gsfmode = replace gsfname = my_graph
rotate = landscape autosize = on xpixels = 1100 ypixels = 800 ;
proc gchart data = sashelp.class;
vbar age/group = sex name = "my_graph";
run;quit;
Good luck!
Hi.
First thing: you should never give a real path on your machine.
Second, when I ran your code (replicated below) it worked.
So please provide some log file, or something more.
ods listing close;
*define the path once, no need for quotations, just simply \\my_path_where_I_keep_things\...
%let path = your_path;
ods html file = "my_graph.htm"
path = "&path." (url = none)
gpath = "&path." (url = none);
filename my_graph "&path.\my_graph.png";
goptions reset = global gunit = pct border cback = white htext = 2 ftext = "Arial"
device = png gsfmode = replace gsfname = my_graph
rotate = landscape autosize = on xpixels = 1100 ypixels = 800 ;
proc gchart data = sashelp.class;
vbar age/group = sex name = "my_graph";
run;quit;
Good luck!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.