Starting the ODS Graphics Designer

Start the ODS Graphics Designer

In a SAS session, submit either of the following macro statements to start the ODS Graphics Designer:
%sgdesign;
%sgdesign()
The designer opens in a separate window. When the designer starts, the following events occur:
  • A new internal SAS session is launched, and the designer connects to this session. The designer obtains pertinent information about all libraries, data sets, and formats that have been defined at the time of invocation. The designer can then access these items in the new SAS session.
  • The SAS session creates sample data sets that the designer uses to create its sample graphs. The sample graphs appear in the Graph Gallery.

Optional Parameters

The designer macro has several optional parameters:
portNum = integer
Default = 5310. This parameter indicates the port that the designer uses to communicate with the SAS server. If another application is using port 5310, you can specify a different port for the designer.
refresh = Y | N
Default = N. If you add or modify any SAS libraries, data sets, or format options, setting this parameter to Y enables the designer to detect your changes without having to be restarted.
dataSets = Y | N
Default = N. Some of the plots that are supplied with the designer depend on data sets that the designer creates in the WORK library. If you inadvertently delete some of these data sets, you can re-create them by setting this parameter to Y the next time you start the designer.
Multiple parameters can be used in any order.
To change the server port number to 5320 and re-create the data sets, you can submit the following statement:
%sgdesign( portnum=5320 , datasets=Y)
To force re-creation of the WORK data sets when you start the designer, submit the following statement:
%sgdesign(datasets=Y)
To pick up any new libraries, data sets, or format-related option changes in the SAS session while the designer is running, submit the following statement:
%sgdesign(refresh=Y)