BookmarkSubscribeRSS Feed
amarkaur
Calcite | Level 5

I need to run sas profile on a table with Employee names, addresses, SSN , sex etc.

what procedures can I use?

used FREQ, will only give me frequency and I want to min and max as well.

Means/Summary can give me mean of observation with missing data but since these are character fields what other procedure can be used and waht are the benefits?

 

 

Thanks,

Amar

 

 

 

4 REPLIES 4
ballardw
Super User

@amarkaur wrote:

I need to run sas profile on a table with Employee names, addresses, SSN , sex etc.

what procedures can I use?

used FREQ, will only give me frequency and I want to min and max as well.

Means/Summary can give me mean of observation with missing data but since these are character fields what other procedure can be used and waht are the benefits?

 

 

Thanks,

Amar

 

 

 


I suggest providing some example data and what the result should look like after "profiling".

 

I do not see where min and max of name, address, ssn, sex make sense. Do you mean something related to the min count??

I am very sure I do not follow what "mean of observation with missing data" is supposed to be as the mean of missing is missing.

amarkaur
Calcite | Level 5

Example for Name, addresses , Zip , Sex 

 Using IDQ tool when I profile table for each field,  I get how many unique values, how many missing/null values, minimum value, maximum value for that field (length), datatype etc.

 

Can I get similar results using any SAS procedure.

 

Using proc freq, I do get the frequency and counts of missing values.

 

Thanks,

Amar 

Reeza
Super User
Characterize Data task in EG or SAS Studio does that.
Reeza
Super User
SAS EG and Studio have a characterize data task that will analyse the data.
However, conceptually, the minimum and maximum from character variables are not informative on their own. You can get missing reports from PROC FREQ partly using the NLEVELS options. That's fairly well documented on here though.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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