Glb.Device

Glb.Device is a read-only built-in segment attribute that is set to the type of device to which report output is directed.

Valid values for Glb.Device are listed in the following table for ROC standard and direct reports.

Value

Description

Report Type

Hosts

DI

Direct output

Direct

MCP, Windows

DP

DEPCON report

Direct and MCP-based non-ROC

MCP, Windows

LP

Line printer, output is piped to a command defined by the LP alias

Standard, Direct and MCP-based non-ROC

MCP, Windows

RP

Remote printer

Standard, Direct and MCP-based non-ROC

MCP

TP

Terminal printer, output is piped to a command or alias

Standard, Direct for MCP-based non-ROC

MCP, Windows

VD

Video output

Standard, Direct for and MCP-based non-ROC

MCP, Windows

(spaces)

To be assigned within ROC

Standard

MCP, Windows

EX

Output to extract file

Standard and Direct

MCP, Windows

For ROC reports, Glb.Device can be set to one of the values listed above. If the device type changes, this causes an automatic release of the report when output is next produced. Refer toRelease logic command for more information. If Glb.Device is set to an invalid value, Glb.Device is set to the default value for the report.

Note: This type of release is prompted when a difference is detected by a comparison performed before a Print method is invoked, and not by Glb.Device being set.

If Glb.Device is changed in the logic of a report, associated built-in segment attributes should also be changed, particularly the Glb.Stn built-in segment attribute.

The Device built-in outputstream attribute is used for outputstreams similarly to how Glb.Device is used for reports.

Properties

Length = 2

Primitive = String