BookmarkSubscribeRSS Feed
jaiganesh
Obsidian | Level 7

Hello,

 

 

Can Anybody name the option to produce a frequency line items rather that a table Keyword.

 

 

Regards,

Jaiganesh

3 REPLIES 3
data_null__
Jade | Level 19
LIST?
jaiganesh
Obsidian | Level 7

If your suggesting List Keyword, I have been referring the below example for the same.

 

proc freq data =admit;
tables sex*actlevel/list;
run;

 

However the question expect the answer for the  tables keyword alternative, I'm very new in SAS, May be wrong.

 

Kindly suggest.

 

 

Regards,

Jaiganesh

ballardw
Super User

@jaiganesh wrote:

If your suggesting List Keyword, I have been referring the below example for the same.

 

proc freq data =admit;
tables sex*actlevel/list;
run;

 

However the question expect the answer for the  tables keyword alternative, I'm very new in SAS, May be wrong.

 

Kindly suggest.

 

 

Regards,

Jaiganesh


Can you provide the exact text of the question you are referencing? You may have rephrased it to make it difficult to translate to actual Proc Freq code. Or if you have an example of what the output or result should actually look like.

If you are meaning to create a data set but no printed or results then perhaps:

Proc freq data=somedata noprint;
   tables variable/ out=outputdata;
run;

If you Exclude a tables statement then basically any output is based on all of the variables in the data set as single variables.

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 3 replies
  • 1185 views
  • 0 likes
  • 3 in conversation