Previous Page | Next Page

SAS Component Language Dictionary

GGLOBALN



Returns the number of SYMBOL, PATTERN, LEGEND, or AXIS statements that are currently defined
Category: SAS System Option

Syntax
Details
Example
See Also

Syntax

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


Details

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]


Example

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');


See Also

GGLOBAL

GGLOBALE

Previous Page | Next Page | Top of Page