Report output print - control # of columns in spool attributes
I have a custom report with about 20 columns in output and when I try to print the output, I am getting a warning message saying "system cannot print last 3 columns". When I look at the spool attributes, the # of columns attribute(PRI_PARAMS-LINSZ) has 258 in it. I think this is what is causing the problem. I am not sure where this value is coming from even though the format attribute(PRI_PARAMS-PAART) has value X_65_255. Interestingly, for some other outputs the report print is working just fine and the PRI_PARAMS-LINSZ value in such cases is 227. I do not understand why the PRI_PARAMS-LINSZ value is changing for the same report output and was wondering if there's a way to control this parameter from my program itself.
Any ideas/thoughts appreciated. Thanks.