Chapter Contents |
Previous |
Next |
GGLOBAL |
Category: | SAS System Option |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
stmt-text=GGLOBAL(stmt-type,stmt-num); |
Type: Character
'SYMBOL' | |
'PATTERN' | |
'LEGEND' | |
'AXIS' |
Type: Character
Type: Numeric
Details |
Because a user can change SYMBOL, PATTERN, LEGEND, or AXIS statements during the execution of an application, GGLOBALN must be executed before the GGLOBAL function in order to set up an internal table that is used by GGLOBAL.
Note: SYMBOL and PATTERN can generate more
than one definition per statement. For more information about the SYMBOL,
PATTERN, LEGEND, and AXIS statements, see SAS/GRAPH Software: Reference.
Example |
Assume that the following SYMBOL statements have been defined for the current SAS session:
symbol1 c=red; symbol30 c=blue;
Check to see that at least two SYMBOL statements are available. If this condition is true, the text of the second SYMBOL statement is returned to the variable SYMBOL2.
numsymb=gglobaln('symbol'); if (numsymb >= 2) then symbol2=gglobal('symbol',2);
The value returned to NUMSYMB is 2. The following value is returned to SYMBOL2:
SYMBOL30 CV=BLUE CO=BLUE CI=BLUE;The value of HEIGHT is also returned:
SYMBOL30 CV=BLUE CO=BLUE CI=BLUE HEIGHT=1 ;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.