next up previous contents index
Next: ``Canned'' List Commands Up: Listing a Table Previous: Listing a Table   Contents   Index


LIST Command

The most general of these commans is

LIST,TABLE=name,FILE=name,ALL=logical,COLUMN={expression,...,expression};
The attributes of this command are:
TABLE
The name of the table to be listed (no default). The rows to be listed can be selected by a SELECT command.
FILE
The name of the file to be written (default LIST). The table is written in the TFS format known from MAD Version 8. If the file name is TERM, output goes to the terminal.
TFS
If true, the format is in TFS format, otherwise in a format meant for viewing with a fixed-width fount (``line-printer'' style).
ALL
If true, the column selection is by default, and the column width and precision is selected by MAD. In this case COLUMN is ignored.
COLUMN
A list of column descriptors. Each column descriptor consists of a real expression, which may also contain one or more names of columns as operands. If a name refers both to a column and to a global parameter, the column takes precedence. The expression may optionally be followed by a format indication of the form:

:width
:width:precision
Both width and precision are unsigned integers. width denotes the column width in characters (default 12), and precision controls the number of digits in the column (default width-4).
Example:

list,table=su1,file=term,column={x,y,z,s*z:16:12};


next up previous contents index
Next: ``Canned'' List Commands Up: Listing a Table Previous: Listing a Table   Contents   Index
MAD User Guide, http://wwwslap.cern.ch/mad/