OPENGRAPH

Finds the name of the segment currently open
Operating state: SGOP

Syntax

CALL GASK('OPENGRAPH', name, return-code-variable);

Required Arguments

name
character variable name; returns the name of the graph that is currently open.
return-code-variable
numeric variable name; returns the return code of the routine call, which can be 0 or 4. See Return Codes for DSGI Routines and Functions.

Details

The GASK('OPENGRAPH', . . . ) routine returns the name of the graph that is currently open.
The name returned is one of the following:
  • the name specified in the GRAPH('CLEAR', . . . ) function
  • if the name is omitted from the GRAPH('CLEAR', . . . ) function, some form of DSGI: for example, DSGI, DSGI1, and DSGI2