The SAS Output Delivery System and reporting techniques

grapghname with gchart ??

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 89
Accepted Solution

grapghname with gchart ??


dear all,

I am trying to define my own name for generated graphs (instead of gchartx) but it seems not to work with GSFNAME:

sas1.PNG

any idea ??

THX!!

PS.

how to copy/paste sas code into this page ??


Accepted Solutions
Solution
‎12-04-2012 08:21 AM
Super Contributor
Posts: 543

Re: grapghname with gchart ??

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!

View solution in original post


All Replies
Solution
‎12-04-2012 08:21 AM
Super Contributor
Posts: 543

Re: grapghname with gchart ??

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!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 165 views
  • 0 likes
  • 2 in conversation