Previous Page | Next Page

The SGDESIGN Procedure

PROC SGDESIGN Statement


Renders a graph (SGD file) that was created by using ODS Graphics Designer. The statement also enables you to specify a data set and other options.
Requirements: An input SGD file specification is required. If the SGD file was created to use a temporary data set, such as a data set in the SAS Work library, then that data set must exist in the current SAS session in order for the graph to be rendered. The data set might need to be re-created in the current SAS session.


Syntax

PROC SGDESIGN SGD= "SGD-file-specification"
<DATA= input-data-set>
< LIBNAME=library-name>
<CONTENT>
<OLDSGD>
;

Required Argument

SGD= "SGD-file-specification"

specifies the SGD file to use for the graph. Include the complete path and filename enclosed in single or double quotation marks.

If you do not specify the full path, then the procedure looks for the file in the SAS current working directory. The SAS current directory is the same directory in which you start your SAS session. If you are running SAS with the windowing environment in the Windows operating system, then the current directory is displayed in the status bar at the bottom of the main SAS window.


Options

DATA= input-data-set

specifies the SAS data set that contains the variables to process.

By default, the SGDESIGN procedure uses the data set or data sets that are currently defined in the SGD file. You have the option to specify an alternate data set. Only one data set can be specified here. If the SGD file uses columns from multiple data sets, then the specified data set should contain all the columns that are required to render the graph.

Specify the full name of the SAS data set in the format libref.data-set. If you do not specify the library, then the procedure looks for the data set in the SAS Work library.

LIBNAME= library-name

specifies an alternate library for all data sets that are associated with the SGD file. If no library is specified, then the procedure uses the library that is currently defined in the SGD file.

The data sets in the SGD file can come from multiple libraries. However, when you use the LIBNAME= option, you override all of those library names with the specified library.

CONTENT

outputs important information about the SGD file into the SAS log, including data set names, library names, variable names (including those for dynamic variables), and the ODS style.

Note:   When the CONTENT option is used, no graphics output is produced.  [cautionend]

OLDSGD

enables users to run SGD files that were created with the preproduction release of the ODS Graphics Designer. This option is for backward compatibility.

Previous Page | Next Page | Top of Page