WINPRINT-COLUMN takes the standard print line supplied by the COBOL program and breaks it up into zones of data, where each zone is printed at a specified column position on the page. Initially, there is only one column that starts at the left margin, has no separation zone between columns and has an alignment of WPRTALIGN-NONE. When printing, if there are more input columns than output columns, the unmatched input columns are not printed. If there are more output columns than input columns, the unmatched output columns are printed as if the data for those columns consisted of spaces.

Note: You should INITIALIZE WINPRINT-COLUMN first to ensure compatibility with future versions of the runtime.

WINPRINT-COLUMN is not part of the WINPRINT-DATA structure. When using WINPRINT-SET-PAGE-COLUMN, pass the WINPRINT-COLUMN structure instead of the WINPRINT-DATA structure. This will ensure that changes to WINPRINT-COLUMN can be detected dynamically by the routine.

Two op-codes control the input by specifying the zones in the print line. (This is similar to the DATA-COLUMNS property of the LIST-BOX control.):

Three op-codes control the output by specifying the page layout. (This is similar to the DISPLAY-COLUMNS property of the LIST-BOX control.)

These operation codes use the data item WINPRINT-COLUMN (defined in winprint.def).