Chapter Contents

Previous

Next
GGLOBAL

GGLOBAL



Returns the text of a SYMBOL, PATTERN, LEGEND, or AXIS statement

Category: SAS System Option


Syntax
Details
Example
See Also

Syntax

stmt-text=GGLOBAL(stmt-type,stmt-num);

stmt-text
contains the text of the retrieved SYMBOL, PATTERN, LEGEND, or AXIS statement. If stmt-type is invalid, a missing value is returned.

Type: Character

stmt-type
is the type of statement to retrieve:
'SYMBOL'
'PATTERN'
'LEGEND'
'AXIS'

Type: Character

stmt-num
is the number of the SYMBOL, PATTERN, LEGEND, or AXIS statement to retrieve. Valid values are from 1 to the number of statements that are defined for the specified type, which is returned by the GGLOBALN function.

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.  [cautionend]


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

GGLOBALE

GGLOBALN


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.