Examples


Example 1: Displaying TITLE and FOOTNOTE Statements

Procedure features:

  • PROC GOPTIONS statement:

    • FOOTNOTE

    • NOLIST

Sample library member: GOPTIFT

This example uses the FOOTNOTE option to display the current definitions of both the FOOTNOTE and TITLE statements. It also uses the NOLIST option to suppress the list of graphics options. Output 36.2 shows the listing that appears in the LOG.

Output 36.2: Using the NOLIST Option (GOPTIFT)
start example
 TITLE1 HEIGHT=6 COLOR=BLUE FONT=SWISSB 'Production Quality' ;  TITLE2 HEIGHT=4 COLOR=BLUE FONT=SWISSB 'January through June';  FOOTNOTE1 HEIGHT=3 COLOR=GREEN FONT=SWISS 'Data from SASDATA.QUALITY' ;  FOOTNOTE2 HEIGHT=3 COLOR=GREEN FONT=SWISS '* denotes approximations' ; 
end example
 

Clear all global statements.

 goptions reset=global; 

Define titles and footnotes.

 title1 h=6 c=blue f=swissb 'Production Quality';  title2 h=4 c=blue f=swissb 'January through June';  footnote1 h=3 c=green f=swiss 'Data from SASDATA.QUALITY';  footnote2 h=3 c=green f=swiss '* denotes approximations'; 

Produce the listing. The NOLIST and FOOTNOTE options control the information that appears in the LOG window.

 proc goptions nolist footnote;  run; 

Example 2: Displaying Graphics Options without the Description

Procedure features:

  • PROC GOPTIONS statement:

    • SHORT

Sample library member: GOPSHORT

This example uses the SHORT option to display only the values of graphics options without the description of each graphics option. Output 36.3 shows the listing that appears in the LOG window.

Output 36.3: Using the SHORT Option (GOPSHORT)
start example
 SAS/GRAPH software options and parameters               (executing in DMS Programming Environment environment)  NOADMGDF ASPECT= NOAUTOCOPY NOAUTOFEED NOAUTOSIZE BAUD= BINDING=NOBINDING  BORDER CBACK= CBY= CELL CHARACTERS CHARTYPE= CIRCLEARC NOCOLLATE COLORS=( BLUE  GREEN RED ) CPATTERN=BLUE CSYMBOL= CTEXT=RED CTITLE=GREEN DASH DASHSCALE=  DELAY= DEVADDR= DEVICE= DEVMAP=DEFAULT DISPLAY DISPOSAL=NONE DRVINIT= DRVTERM=  NODUPLEX NOERASE FASTTEXT FBY= FCACHE=3 FILECLOSE= FILL FILLINC= FONTRES=NORMAL  FTEXT=SWISSB FTITLE= FTRACK=TIGHT GACCESS= GCLASS=G GCOPIES=(0, 20)  GDDMCOPY=FSCOPY GDDMNICKNAME= GDDMTOKEN= GDEST=LOCAL GEND= GEPILOG= GFORMS=  NOGOPT10 NOGOPT11 NOGOPT12 NOGOPT13 NOGOPT14 NOGOPT15 GOPTINT1=0 GOPTINT2=0  GOPTDBL1= GOPTDBL2= GOPTSTR1= GOPTSTR2= GOUTMODE=APPEND GOUTTYPE=INDEPENDENT  GPROLOG= GPROTOCOL= GRAPHRC GSFLEN= GSFMODE=PORT GSFNAME= NOGSFPROMPT GSIZE=  GSTART= GUNIT=PERCENT GWAIT= GWRITER=SASWTR HANDSHAKE= HBY=4 HORIGIN= HPOS=  HSIZE= HTEXT=3 HTITLE=6 INBIN= INTERPOL= ITERATION= NONINTERLACED  KEYMAP=DEFAULT LFACTOR= OFFSET= OFFSHADOW=(0.0625 in., -0.0625 in.) OUTBIN=  PAPERFEED= PAPERLIMIT= PAPERSIZE= PAPERTYPE= PENMOUNTS= PENSORT PIEFILL NOPCLIP  POLYGONCLIP POLYGONFILL POSTGEPILOG= POSTGRAPH= POSTGPROLOG= PPDFILE=  PREGEPILOG= PREGRAPH= PREGPROLOG= PROMPT PROMPTCHARS='000A010D05000000'X  RENDER=MEMORY RENDERLIB=WORK REPAINT= NOREVERSE NOROTATE SIMFONT= SPEED= NOSWAP  SYMBOL TARGETDEVICE= NOTRANSPARENCY TRANTAB= UCC= NOUSERINPUT NOV5COMP NOV6COMP  VORIGIN= VPOS= VSIZE= XMAX= XPIXELS= YMAX= YPIXELS= 
end example
 

Set the graphics environment. The values of the graphics options specified in this statement

appear in the LOG listing.

 goptions reset=global gunit=pct border           ftext=swissb htitle=6 htext=3           ctext=red cpattern=blue ctitle=green           colors=(blue green red) hby=4; 

Produce the listing. The SHORT option suppresses the display of the description of each graphics option.

 proc goptions short;  run; 



SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net