SAS OnlineTutorback||next

Try It! Size SAS/GRAPH output in two ways.

Creating HTML output? Read this first.

  1. Copy the program below and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source). Then submit the program and view the graph.
    goptions reset=goptions;
    proc gchart data=flights.europe;
    hbar dest / sumvar=revenue;
    run;
    quit;
  2. Recall the program and add graphics options to specify a width of 3.5 inches, a height of 3.5 inches, and a border for the graph.

  3. Submit the program and view the graph, scrolling forward in the GRAPH window if necessary.

  4. Recall the program and revise it to

    • assign the fileref Mygif to a file named Testgif.gif in your default storage location

    • specify Mygif as the output destination for your graph

    • specify GIF as the device driver for your graph

    • size the graph 300 pixels high and 400 pixels wide.

  5. Submit the program and view log messages to verify that Testgif.gif was created.

    Return here and select Next.

Solution

back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA.
All rights reserved.

Terms of Use & Legal Information | Privacy Statement