Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.2 Online Documentation (MoTW) Revision 3

LIST-SPREAD Command (English) (m618304+listspread.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

LIST-SPREAD

Generates an English listing in the same way as LIST. However, instead of putting spaces between columns, tab characters are inserted and output is not paged.

Syntax

As for LIST.

Comment

LIST-SPREAD is intended to supply easily-parsable output when used to PERFORM an ENGLISH statement. The tab-separated, columnar format may also be directly imported into a spreadsheet when used in a "reality -c 'LIST-SPREAD …' " form.

SORT-SPREAD is similar but sorts items into item-id order (like SORT).

Example

PERFORM "LIST-SPREAD USERS" CAPTURING OUT
OUT = CHANGE(OUT, CHAR(09), @VM)
USER.ID = OUT<4,1>
USER.DESC = OUT<4,2>
USER.ACCOUNT = OUT<4,3>
PRINT USER.ID,USER.DESC,USER.ACCOUNT

may generate

DSPMON            Despooler Monitor SYSPROG

RealityV15.2Revision 3Comment on this topic