Overview (GGRAPH command)

GGRAPH generates a graph by computing statistics from variables in a data source and constructing the graph according to the graph specification, which may be written in the Graphics Productions Language (GPL) or ViZml.

Basic Specification

The basic specification is the GRAPHSPEC subcommand.

Syntax Rules

  • Subcommands and keywords can appear in any order.
  • Subcommand names and keywords must be spelled out in full.
  • The GRAPHDATASET and GRAPHSPEC subcommands are repeatable.
  • Parentheses, equals signs, and slashes shown in the syntax chart are required.
  • Strings in the GPL are enclosed in quotation marks. You cannot use single quotes (apostrophes).

Scope and Limitations

  • With the IBM® SPSS® Statistics Batch Facility (available only with IBM SPSS Statistics Server), use the -i switch when submitting command files that contain BEGIN GPL-END GPL blocks.
  • With the Production Facility, set the Syntax Input Mode to Interactive for jobs that contain GPL blocks.
  • GPL blocks cannot be nested within GPL blocks.
  • Inline GPL blocks cannot be contained within DEFINE-!ENDDEFINE macro definitions. If you want to use GPL within macro definitions, do not use inline GPL blocks. Put the GPL in a file and reference it with SOURCE=GPLFILE.
  • GPL blocks can be specified in external command syntax files. Use the INSERT command to call the external files and run the GPL blocks (with the default SYNTAX=INTERACTIVE setting).
  • The INCLUDE command cannot run GPL blocks that are specified in external command syntax files.