Overview (BEGIN GPL-END GPL command)

BEGIN GPL and END GPL are used when Graphics Production Language (GPL) code is entered within the command sequence (inline graph specification). BEGIN GPL and END GPL must follow a GGRAPH command, without any blank lines between BEGIN GPL and the command terminator line for GGRAPH. Only comments are allowed between BEGIN GPL and the command terminator line for GGRAPH. BEGIN GPL must be at the start of the line on which it appears, with no preceding spaces. BEGIN GPL signals the beginning of GPL code, and END GPL signals the end of GPL code.

For more information about GGRAPH, see GGRAPH. See the GPL documentation for more details about GPL. The examples in the GPL documentation may look different compared to the syntax pasted from the Chart Builder. The main difference is when aggregation occurs. See Working with the GPL (GGRAPH command) for information about the differences. See GPL Examples (GGRAPH command) for examples with GPL that is similar to the pasted syntax.

Syntax Rules

  • Within a GPL block, only GPL statements are allowed.
  • Strings in GPL are enclosed in quotation marks. You cannot use single quotes (apostrophes).
  • With the IBM® SPSS® Statistics Batch Facility (available only with IBM SPSS Statistics Server), use the -i switch when submitting command files that contain GPL blocks.

Scope and Limitations

  • GPL blocks cannot be nested within GPL blocks.
  • GPL blocks cannot be contained within DEFINE-!ENDDEFINE macro definitions.
  • GPL blocks can be contained in command syntax files run via the INSERT command, with the default SYNTAX=INTERACTIVE setting.
  • GPL blocks cannot be contained within command syntax files run via the INCLUDE command.