BookmarkSubscribeRSS Feed
mnithinshetty
Obsidian | Level 7

Hi All,

 In table output there around 40 columns to be displayed based on parameters.
for one param there will be few columns with no values
and the same columns will be having values for an another param.
so we cannot avoid those columns in paging. but the task is we should not print columns with no values for any parameter
and if the same column has values for other parameter then it should be displayed for that specific param.

 

Can someone please provide suggest me the logic 

2 REPLIES 2
andreas_lds
Jade | Level 19

I think you will have to pre-process the data.

Posting an excerpt of the data and the proc report you have will allow better suggestions.

RichardDeVen
Barite | Level 11

A variable (your parameter ?) having columns for values in output suggests you are using

define parameter / across;

Is this the case ?

 

Are you stacking across variables ?

columns group (parameter1,parameter2);
define group / group;
define parameter1 / across;
define parameter2 / across;

Is this the case ?  If so, you might want a WHERE statement added to the PROC step.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 354 views
  • 0 likes
  • 3 in conversation