Specify which style element and style attributes to use for different cells.


The CELLSTYLE-AS statement specifies the style element and style attributes to use for cells in each of the rows and columns. The CELLSTYLE-AS statement creates the checkerboard effect in the output. If both the row and column are odd numbered, then the cell is yellow in color. Similarly, if both the row and column are even numbered, then the cell is yellow in color. The CELLSTYLE-AS statement has no effect on the LISTING destination because it is changing style elements and style attributes which have no effect in listing output.


cellstyle mod(_row_,2) && mod(_col_,2) as data{backgroundcolor=yellow fontweight=bold },
                not(mod(_row_,2)) && not(mod(_col_,2)) as data{backgroundcolor=yellow fontweight=bold },
                1 as data;