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


Padding mapped fields with null characters

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



GDDM-IMD pads default data with blanks to fill the field. If you specify no default data, GDDM-IMD fills the complete field with blanks. If you want to pad with nulls, perhaps to allow the end user to use the insert key, you must provide the field with a length adjunct.

Here is an ADS containing two fields, the first of which has a length adjunct:


     DCL 1 CUSTOMER,

10 CUSTNUM_LENGTH FIXED BIN(15), 10 CUSTNUM CHAR(5), 10 INVOICE CHAR(4), CUSTOMER_ASLENGTH FIXED BIN(31,0) STATIC INIT(11);

On output, your program sets the length adjunct to the length of data in the field, and GDDM pads the remainder of the field with nulls. If the end user modifies the field, then on input, GDDM sets the length adjunct to the new length of the data.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012