BookmarkSubscribeRSS Feed
hnam
Calcite | Level 5

Hello,

I have two questions about Proc Tabulate:

1. I wanted to remove a field from the list since that is not needed in the output. Is it possible?

2.Also how do I align the listings under a specific variable in the middle of the table?

Could someone please send the keyword/code to do so.

Thanks in advance.

Hari

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  Seeing your TABULATE code would be most helpful here and a bit of your data. For example, when you say you want to "remove a field from the list" -- what field and what list? Do you mean the variable name in the VAR statement or do you mean the variable label in the TABULATE final table? You could mean either. You say that the field is not needed in the output, which would be an argument for just taking the variable out of the TABLE statement, but without seeing your actual code, it is hard to envision what you mean.

  Next, you asked how to "align the listings under a specific variable in the middle of the table" -- I'm stumped over this one -- what "listings" -- again, seeing your actual TABULATE code might help here. What do you mean by the "middle of the table"? Do you want to alter the justification of the data cells or do you have multiple TABLE statements in one TABULATE job and want all the tables to be justified the same? There may not be just one keyword or code option to do what you want to do -- assuming that we understand what it is you want to do.

  Also, what is your destination of interest? LISTING window or output? HTML, RTF, PDF -- many TABULATE options that work in the LISTING destination do not work for other ODS destinations.

  If you cannot or are not in a position to post some sample data and your TABULATE code, then you might want to work with Tech Support, as they can look at ALL your code and ALL your data and help you come to the best resolution of your question.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 595 views
  • 0 likes
  • 2 in conversation