DOCUMENTATION
  • Software
    • Software
    • SAS Viya
    • Industries
    • Solutions
    • Products
  • Learn
    • Learn
    • Training
    • Certification
    • Academics
    • Books
    • Video Tutorials
  • Support
    • Support
    • Communities
    • Documentation
    • Developers
    • Support & Services
    • User Groups
  • About Us
    • About Us
    • Why SAS?
    • Company
    • Careers
    • Newsroom
    • Events
    • Contact Us
  • Explore
    • Explore
    • Try & Buy
    • Why SAS?
    • Customer Stories
    • Partners
    • Consulting
  • Software
  • SAS Viya
  • Industries
  • Solutions
  • Products
  • Learn
  • Training
  • Certification
  • Academics
  • Books
  • Video Tutorials
  • Support
  • Communities
  • Documentation
  • Developers
  • Support & Services
  • User Groups
  • About Us
  • Why SAS?
  • Company
  • Careers
  • Newsroom
  • Events
  • Contact Us
  • Explore
  • Try & Buy
  • Why SAS?
  • Customer Stories
  • Partners
  • Consulting
  • Contact Us
Sign In

Create Profile

My SAS

Get access to My SAS, trials, communities and more.

SAS Sites

sas.com
Support
Blogs
Communities
Developer
Curiosity
Videos

Documentation

Learn
Brand
PartnerNet
Merchandise
SAS® Help Center
SAS® Viya® Workbench
|PDF 
Feedback
 
  • Welcome to Workbench Programming Documentation
  • What’s New
  • Getting Started
  • SAS Language Elements by Name, Product, and Category
  • SAS Viya Workbench Procedures
  • Python Programming
  • R Programming
  • Advanced Analytics
    • Machine Learning
    • Statistics
      • Statistical Procedures
        • Introduction
        • Shared Concepts
        • ASSESS Procedure
        • BART Procedure
        • BINNING Procedure
        • CAEFFECT Procedure
        • CARDINALITY Procedure
        • CATTRANSFORM Procedure
        • CORRELATION Procedure
        • EFA Procedure
        • FREQTAB Procedure
        • GAMMOD Procedure
        • GAMSELECT Procedure
        • GENSELECT Procedure
        • ICA Procedure
        • KCLUS Procedure
        • LMIXED Procedure
        • LOGSELECT Procedure
        • MBC Procedure
        • MODELMATRIX Procedure
        • MVOUTLIER Procedure
        • NLMOD Procedure
        • NMF Procedure
        • PARTITION Procedure
        • PCA Procedure
        • PHSELECT Procedure
        • PLSMOD Procedure
        • QTRSELECT Procedure
        • SANDWICH Procedure
        • REGSELECT Procedure
        • SIMSYSTEM Procedure
        • SPC Procedure
        • SUPERLEARNER Procedure
        • TREESPLIT Procedure
        • VARIMPUTE Procedure
        • VARREDUCE Procedure
      • SAS/STAT User's Guide
    • SAS/QC User's Guide
    • SAS Enterprise Miner: High-Performance Procedures
  • Data Access
  • Data Quality
  • Output and Graphics
  • SAS Language Resources
  • Administration
  • Accessibility
  • Other Resources
Statistical Procedures
 

CARDINALITY Procedure

Overview
Getting Started
Syntax
Details
Examples
References

Syntax: CARDINALITY Procedure

The following statements are available in the CARDINALITY procedure:

  • PROC CARDINALITY OUTCARD=libref.data-table <options>;

  • FREQ variable;

  • VAR variables </ options>;

  • WEIGHT variable;

The PROC CARDINALITY statement is required.

Last updated: May 14, 2026
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved