SAS Component Language Dictionary |
Returns the number of SYMBOL, PATTERN, LEGEND, or AXIS statements
that are currently defined
Category: |
SAS System Option
|
num-stmts=GGLOBALN(stmt-type);
|
-
num-stmts
-
contains the number of SYMBOL, PATTERN,
LEGEND, or AXIS definitions that are currently defined.
Type: Numeric
-
stmt-type
-
specifies the type of statement to return:
|
'SYMBOL' |
|
'PATTERN' |
|
'LEGEND' |
|
'AXIS' |
Type:
Character
Information about SYMBOL, PATTERN,
LEGEND, or AXIS statements is stored in an internal table and can be retrieved
with GGLOBAL. To delete the internal table created by GGLOBALN, use GGLOBALE.
Note: SYMBOL and PATTERN can generate more than one definition per statement.
For more information about SYMBOL, PATTERN, LEGEND, and AXIS statements, see
SAS/GRAPH: Reference.
![[cautionend]](../../../../common/62850/HTML/default/images/cautend.gif)
Assume that the following SYMBOL statements have been defined for the
current SAS session:
symbol1 c=red;
symbol30 c=blue;
In the variable NUMSYMB, return the number of SYMBOL statements that
are currently available. The value returned for NUMSYMB is 2, not 30.
numsymb=gglobaln('symbol');
GGLOBAL
GGLOBALE
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.