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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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