CDO$HELP.HLB  —  fld-properties  JUSTIFIED  Examples
    1.CDO>  DEFINE FIELD STREET
      cont>   DATATYPE IS TEXT 15
      cont>   NAME FOR COBOL IS C_STREET
      cont>   JUSTIFIED RIGHT.

      In this example, the DEFINE FIELD command allocates space
      for 15 right-justified text characters in the STREET field
      element.

    2.thsonian Avenue
      15 Maple Street
      ---6 Oak Street

      In this continuation of the previous example, COBOL displays
      the strings "137 Smithsonian Avenue," "15 Maple Street", and "6
      Oak Street" in the STREET field element. The deltas represent
      blanks that COBOL enters to fill the 15 characters allocated
      for the STREET field element. In this example, 15 characters
      appear on a line; however, the individual line lengths vary due
      to the different character sizes.

    3.CDO>  CHANGE FIELD STREET
      cont>   NOJUSTIFIED.

      In this example, the NOJUSTIFIED keyword removes the JUSTIFIED
      RIGHT property from the STREET field element.
Close Help