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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 621 views
  • 0 likes
  • 2 in conversation