Glb.SaveDays

Glb.SaveDays is a read-writable built-in segment attribute that is set to the number of days that report output is to be retained by ROC. The output is deleted by startup logic or by running the ROC report which deletes expired report output when this time has elapsed, and when there are no outstanding requests for it to be printed. A value of 99 specifies that the output is retained indefinitely.

Glb.SaveDays must be set prior to any Print method invocation, or after a Release logic statement and before the next Print method invocation. If Glb.SaveDays is set after a Print method invocation, its value will be the value prior to the Print method invocation. By default, this is zero.

Glb.SaveDays has no effect on direct reports (and MCP-based non-ROC Reports), and is invalid in Ispec logic.

Once output from a report has been produced, the Glb.SaveDays value remains until the next Release logic statement (or end-of-job), when the most recent change to its value applies.

Glb.SaveDays has a default value of zero. If sufficient information is provided to print the data (that is, if Glb.Device and Glb.Stn both have non-space values, or Glb.Device has the value LP), the report output is removed after printing. If there is insufficient information to automatically print the data, report output is retained until the end of the current day. Reports are deleted after midnight.

For ROC systems on a Windows host, if the report output present in ROC has completed printing (status = “C’) and its Glb.SaveDays is zero, the report is retained in ROC until the next day. The ROCDelExpird report is used to delete expired reports and output requests. Refer to the description of RocDelExpird in the Agile Business Suite Runtime for Windows® Operating System Administration Guide.

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

Properties

Length = 2

Primitive = Number