OUTPUT Phrase

OUTPUT {JUSTIFIED}  {LEFT    }
       {JUST     }  {RIGHT   }
                    {CENTERED}
  1. The OUTPUT phrase affects the alignment of displayed data. It has no effect in a Format 1 ACCEPT statement unless the ECHO phrase is also specified.
  2. The LEFT option causes data to be justified to the left edge of the field, the RIGHT option causes right-justification, and the CENTERED option causes the displayed data to be centered in the field.
  3. When the OUTPUT phrase is used, leading and trailing spaces are removed from the data before it is displayed. This is also done before the default size of the field is computed (except for Screen Section entries). Thus the three forms of justification are the same unless the SIZE phraseis also specified with a size larger than the data's length. Computing the default size after stripping the leading and trailing spaces allows fields to be concatenated together on the screen without computing column positions.