HI:
I'm not sure what you mean when you say "using pagebreak". Do you mean that the dashed line you show is actually where you want a page break? Or do you JUST want an empty line in the report before the strings COLOUR, FLOWER, FRUIT, etc??
While a compute block may help you, it will only work with GROUP or ORDER items on the report. So depending on what the rest of your data looks like, It seems to me like your data is using one column to hold grouping information and detail information, with no distinction between them.
If you could restructure your data, using PROC REPORT would be easier as shown below:
If you had something like a TYPE variable on every row, then you could control what was written out at the break.
Or, otherwise, restructure your data another way to get the same report:
My tendency is to prefer the first approach, but I have also used the second approach too.
Cynthia
The line-statement in a compute-block should do what you want.
HI:
I'm not sure what you mean when you say "using pagebreak". Do you mean that the dashed line you show is actually where you want a page break? Or do you JUST want an empty line in the report before the strings COLOUR, FLOWER, FRUIT, etc??
While a compute block may help you, it will only work with GROUP or ORDER items on the report. So depending on what the rest of your data looks like, It seems to me like your data is using one column to hold grouping information and detail information, with no distinction between them.
If you could restructure your data, using PROC REPORT would be easier as shown below:
If you had something like a TYPE variable on every row, then you could control what was written out at the break.
Or, otherwise, restructure your data another way to get the same report:
My tendency is to prefer the first approach, but I have also used the second approach too.
Cynthia
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.