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.

 

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