SAS Users
Providing technical tips and support information, written for and by SAS users.
Keeping the top frequency count (n) for each character variable in a SAS data set
Which character variables have the highest frequency count? You can easily determine this using a variety of procedures that calculate frequency count. For example, the FREQ Procedure or the MEANS Procedure. This blog post illustrates this process through two examples.
How to sample textual data with SAS
See how to sample unstructured (text) data using SAS Viya and CAS actions. This post includes complete code to cluster the text documents via k-means, and treats the cluster memberships as strata for analysis.
SAS administrators tip: Automatically deleting old SAS logs
SAS batch jobs can generate many log files that accumulate over time. In this post, we present a SAS program that cleans up old log files on your system.