DEVICE

Finds the output graphics device
Operating state: All

Syntax

CALL GASK('DEVICE', device, return-code-variable);

Required Arguments

device
character variable name; returns the name of the device driver.
return-code-variable
numeric variable name; returns the return code of the routine call, which is 0. See Return Codes for DSGI Routines and Functions.

Details

The GASK('DEVICE', . . . ) routine returns the current device. This routine returns the device set by one of the following methods:
  • the GSET('DEVICE', . . . ) function
  • the DEVICE= graphics option
  • the device that you entered in the DEVICE prompt window
  • the device that you entered in the OPTIONS window.
There is no default value for a device. To use DSGI, you must specify a device. For more information about devices, see Overriding the Default Device.