Glb.Task

Glb.Task is a read-writable built-in segment attribute that can be used to provide a result for the running of the referencing report.

For Windows operating systems

For Reports initiated from the command prompt (via RUNREP), you can determine the value of GLB.TASK from the return code of a Report, and use that information to control dependent actions. The report will return a value in the range 0 through 199. A number in the range 0-99 is returned for a normal report completion, and a number in the range 100-199 for a failed report (abnormal termination – for example, file not found error).

Refer to the Agile Business Suite Runtime for Windows® Administration Guide for more information on the description of the use of GLB.TASK for Reports.

Properties

Length = 2

Primitive = Number

For an MCP-based system

Glb.Task is accessible from a WFL job, and its value can be used to control subsequent WFL execution.

If the Report is run through the batch Report Initiation Program (RIP), and a value is moved into Glb.Task, the value returned to RIP at end-of-task is TASKVALUE.

A Move of a value to Glb.Task causes the TASKVALUE attribute to be set immediately.

This occurs for a Move logic command only; any other command that has Glb.Task as a receiving field results in Glb.Task being set only at the end of the Report.

Glb.Task is zero unless it is explicitly given a value.

 Caution

Glb.Task should not be set to 1, as this value is used specifically to indicate a Report runtime error, for example, division by zero or DMSII errors.

Properties

Length = 2

Primitive = Number