Glb.Stn is a read-writable built-in segment attribute that is set to the transaction originator of the referencing ispec, or specifies the destination of the referencing report. Refer to the Agile Business Suite Runtime for ClearPath MCP Administration Guide for more information on reference station names. Glb.Stn might also be written as Glb.Station.
Glb.Stn and ispecs
In ispecs, Glb.Stn is set to the originator of the current ispec transaction, as listed in the following table.
Transaction Origin | Glb.Stn Value |
---|---|
Standard user terminal | Windows user ID or station name if the Component Enabler or Winforms client session has been configured with a user-defined station name. MCP-based System reference station name. |
External automatic entry | Windows user id of the terminal originating the external automatic entry. MCP-based System reference station name. |
OLTP | Glb.OLTP |
Offline source | OFF |
Generalized Interface program | GLI |
Glb.Stn and reports
In Reports, Glb.Stn is set to the report destination.
Changing the value of Glb.Stn causes a release of the current print file. The Glb.Stn value is stored when a frame is printed. This value is later compared to the current value at the next Print method invocation, to determine if a release is required. The release is prompted by that comparison, not by assignment of Glb.Stn.
Default Glb.Stn values for each device type (specified by the Glb.Device built-in segment attribute) are listed in the following table.
Glb.Device | Glb.Stn Default |
---|---|
DI | Spaces |
DP | Spaces |
EX (ROC only) | Spaces |
LP | Spaces |
TP | Glb.ASCPrt |
VD | Glb.InitStn |
Spaces (ROC only) | Spaces |
For reports directed to "LP" or "TP", Glb.Stn is set to the piped alias, and for reports directed to "EX", ensure that the Glb.Title represents the file name to replace the default one. The user can provide a path in Glb.Stn if he wants the extract file to be created in a location other than the default path ~\Data\private\reports\. However, Glb.Title does not include the directory name. Refer to Glb.Title for more information. Glb.Stn is not set for device types "VD", "DI", or "DP".
For reports having GLB.Device = LP the GLB.STN defines the printername. A typical printer name consists of <\\ServerName\PrinterName> and the printername is restricted to 17 characters only therefore we allow you to use the ALIAS table of ROC database to retrieve the physical printer name.
Therefore, when ROC is installed, you can use GLB.STN value as a key and define the ROCDB.ALIAS as a longer printer name. The report mechanism will search the ALIAS table and assign your defined Printer Name as the physical printer. This mechanism applies to Standard, Direct, and Enterprise Output Manager (Depcon) report types.
The Station built-in outputstream attribute is used for outputstreams similarly to how Glb.Stn is used for reports.
Properties
Length = 17 (on Windows, the length is 40)
Primitive = String