1 
 2 
 3 
 4 10/20/86  expand_list, els
 5 
 6 
 7 Syntax as a command:  els path {-control_args}
 8 
 9 
10 Function:  creates a listin segment from a lister segment.
11 
12 
13 Arguments:
14 path
15    is the pathname of the lister segment.  If the entryname suffix
16    lister is not specified, then it is added.  A listin segment is
17    created in the working directory with the same entryname as path,
18    and with the entryname suffix lister changed to listin.  Any
19    existing copy of this listin segment is overwritten.
20 
21 
22 Control arguments:
23 -all, -a
24    specifies that all field names are to be placed in the listin
25    segment.  The default is to suppress field names for null fields.
26 -line_length N, -ll N specifies that the line length of the ASCII
27    listin segment is to be N characters.  If this control argument is
28    not specified, then only one field is placed on each line.  A field
29    is placed on a new line only if adding the field to the current line
30    would exceed the specified line length.  At least one field is
31    placed on each line.
32 -totals, -tt
33    displays the number of records expanded.
34 
35 
36 Notes:  The ASCII listin segment created by this command has the
37 following format:
38 
39    The first two lines specify the record and field delimiter
40    characters.
41 
42 
43    Beginning on the third line are the field names.  They are separated
44    by a comma and a space.  A field name is placed at the beginning of
45    a new line if adding it to the current line would exceed the
46    specified line length.
47 
48 
49    Each record begins with a line containing just the record delimiter
50    character.
51 
52 
53    Unless -line_length is specified, each field is placed on a separate
54    line and indented one space.
55 
56 
57 The expand_list command sets the "lister" severity indicator.  A
58 severity of 2 is set when the expansion is not performed or the
59 invocation of expand_list terminates abnormally.  A severity of 0 is
60 set when the expansion is successfully performed and the command
61 terminates normally.
62