Use CW, CT, and CDx edit codes with DATE, TIME, and TIMESTAMP values to allow column wrapping.
Data in column-wrapped columns (CW, CT, CD, XW, and BW edit codes) is always aligned using default alignment. (Alignment for headings in column wrapped columns can be modified.) LEFT, CENTER, and RIGHT alignment are ignored for these edit codes. (See Column alignment.)
If your installation uses DBCS data, you can use the CW edit code on columns of mixed double-byte and single-byte character data. The minimum width of such a column is 4.
The following examples show a report before and after the width of the LOCATION column is reduced and its edit code changed to CW.
Before column wrapping:
DEPTNAME LOCATION -------------- ------------- HEAD OFFICE NEW YORK PACIFIC SAN FRANCISCO
After column wrapping:
DEPTNAME LOCAT -------------- ----- HEAD OFFICE NEW Y ORK PACIFIC SAN F RANCI SCO
If your installation uses DBCS data, you can use the CT edit code on columns of mixed double-byte and single-byte character data. QMF interrupts the line when it finds an SBCS blank. The minimum width of such a column is 4.
The following examples show a report before and after the width of the LOCATION column is reduced and its edit code changed to CT.
Before column wrapping:
DEPTNAME LOCATION -------------- ------------- HEAD OFFICE NEW YORK PACIFIC SAN FRANCISCO
After column wrapping:
DEPTNAME LOCAT -------------- ----- HEAD OFFICE NEW YORK PACIFIC SAN FRANC ISCO
If your installation uses DBCS data, you can use the CDx edit code on columns of mixed double-byte and single-byte character data. The minimum width of such a column is 4, and the delimiter must be outside of the DBCS string.
If a string of data is too long to fit in the column and does not contain a delimiter, QMF wraps the data by width until it finds a delimiter and can continue wrapping by it. If a string of data contains multiple successive delimiters, QMF shows a blank line for each one after the first. For example, if the data contains two delimiters, QMF begins a new line when it gets to the first delimiter, skips a line when it gets to the second delimiter, and then continues wrapping the output.
The following examples show a report before and after the width of the LOCATION column is reduced and its edit code changed to CD&.
Before column wrapping:
DEPTNAME LOCATION -------------- ------------- HEAD OFFICE NEW YORK PACIFIC SAN FRANCISCO
After column wrapping:
DEPTNAME LOCATION -------------- --------- HEAD OFFICE NEW YORK PACIFIC SAN FRANCISCO
When you use edit codes CW, CT, CD, XW, and BW, column wrapping is only performed when tabular data is displayed or printed. A reference to &n in a text line only displays the first line of the wrapped data.
[ Previous Page | Next Page | Contents | Index ]