Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes <code>---</code> is a valid <code>PICTURE</code> clause. The variable corresponding to this <code>PICTURE</code> will accept assignments of numeric values in the range -99 through to +99. It cannot be assigned non-numerics (space for example). However, if you were to <code>DISPLAY</code> this variable after assigning a numeric value to it, leading zeros will be replaced by spaces. Consequently, if you <code>MOVE ZERO</code> to this item it will <code>DISPLAY</code> only spaces. Attempting to <code>MOVE SPACES</code> to this item will result in a compile error (incompatible data types). This last bit may seem a little counter intutive, but remember that this type of <code>PICTURE</code> clause implies a <code>USAGE</code> of display - basically items defined in this manner are used to 'pretty print' numbers. About the only operations you can preform with <code>USAGE DISPLAY</code> items is <code>MOVE</code> to or from and <code>DISPLAY</code> them.</p> <p><strong>EDIT - Response to Comment</strong></p> <p>A <code>PICTURE</code> of <code>---X(2)</code> is invalid. The chart below illustrates combinations and the order that symbols may appear in a <code>PICTURE</code> string. Notice that parenthesis are not in the chart. Logically you can replace them with the corresponding number of occurences of the preceding character before reading the string. For example <code>X(3)</code> is read as <code>XXX</code>. If you really want to parse out a <code>PICTURE</code> string properly, you can use this chart to construct a BNF grammar specifically for them.</p> <p><img src="https://i.stack.imgur.com/fJN3r.gif" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload