GDDM V3R2 Base Application Programming Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Justification and padding

GDDM V3R2 Base Application Programming Reference
SC33-0868-02



During map definition, you can specify that a field should be right-justified, left-justified or not justified, and, if you want, that it should be padded with a particular character. If you do not specify a padding character, defaults are used; that is, character zero for right-justified fields, blank for left-justified fields.

For right-justified fields:

  1. The rightmost significant (that is, nonblank, nonnull) character is aligned with the rightmost boundary of the field in the application data structure. Leading blanks or nulls are then changed to the padding character.
    
    
  2. The length adjunct (if one was specified for the field) is set to the application data structure field length.
    
    

For left-justified fields:

  1. The leftmost significant (that is, nonblank, nonnull) character is aligned with the leftmost boundary of the field in the application data structure. Trailing padding characters are then added to fill the field.
    
    
  2. The length adjunct (if one was specified) is set to the number of characters in the field up to the first padding character.
    
    

For fields for which no justification is specified, the input data is left unchanged (that is, leading and trailing blanks are not removed), and the rest of the field is filled with blanks. The length adjunct, if specified, is set to the number of characters (including leading and trailing blanks) entered by the terminal operator.

If the input data is longer than the field in the application data structure, it is truncated on the right, irrespective of any justification specification, before leading and trailing blanks are suppressed, and a warning message is issued when MSGET is used on the map.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012