Build report list

Command group Flag affected Reversible Execute on client Platform(s)
Reports and Printing YES YES NO All

Syntax

Build report list ([Clear list])

Options

Clear list If specified, the command empties the current list and defines it to have a single hash variable column before executing

Description

This command builds a list containing the name of each report class in the current library. The list is built in the current list for which the columns must have been defined. The columns are

Column 1 (Character) Column 2 (Character)
Report class name Description for report (if one has been entered)

You get column 1 only when you use the Clear list option.

The Clear list option clears the current list and redefines it to include only the #S5 field. With this option the command becomes reversible.

Example

; Build a list of report classes in the current library
Set current list lReportList
Define list {lClass,lDesc}
Build report list
; Alternatively, you can use notation to build a list
; of report classes
Do $clib.$reports.$makelist($ref.$name,$ref.$desc) Returns lReportList
Do lReportList.$redefine(lClass,lDesc)