BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi everyone.
I have weird requirement which is troubling me a lot.

i am making report using proc report.
i am printing 3 variables(columns) across each value of across variable.

but now i want to put a condition for few values in across variable that if those are values then i will print only 2 variables across it.

can we use noprint option for _c3_ types of columns ..

please help.

thank you
2 REPLIES 2
Tim_SAS
Barite | Level 11
PROC REPORT doesn't support this functionality. I think your best bet is to pre-process your data and conditionally eliminate the column (perhaps with a view?) before running PROC REPORT.
deleted_user
Not applicable
Hi Tim,
thnx for reply.

I have come up with a solution ..
thanks to nozero option in proc report..... 🙂

just before proc report i wrote a small datastep.
it that i made the values = 0 for the selected across variable values.

and it worked fine..

Regards
Avi

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 936 views
  • 0 likes
  • 2 in conversation