BookmarkSubscribeRSS Feed
Srigyan
Quartz | Level 8

Is there any macro which can give an exploratory analysis for a dataset and create a dataset for all variable at once, char or numeric both.Whatever not applied for char that will be blank

like

Label-Variable name

Type- i.e. char/date/num

length-length of variable

no of record

nmiss

how many unique value

mean

median

mode

std dev

p value etc

 

 

2 REPLIES 2
Quentin
Super User

If you search over at lexjansen.com for terms like "data dictionary" and "codebook" I think you'll find plenty of user group papers that present macros to do this sort of reporting.

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in March 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.
Reeza
Super User
If you have SAS Studio or Enterprise Guide, there's a task called 'Characterize Data' that will do this.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 2 replies
  • 736 views
  • 1 like
  • 3 in conversation