Chapter 30
SAS Catalogs
Definition of a SAS Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
SAS Catalog Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
Parts of a Catalog Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
Accessing Information in Catalogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672
Tools for Managing SAS Catalogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672
Profile Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Definition of a Profile Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
How the Information Is Used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
How Sasuser.Profile Is Created . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
How to Recover Locked or Corrupt Profile Catalogs . . . . . . . . . . . . . . . . . . . . . . 674
Catalog Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
Example 1: LIBNAME Catalog Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . 675
Example 2: CATNAME Catalog Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . 676
Rules for Catalog Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678
Definition of a SAS Catalog
SAS catalogs are special SAS files that store many different types of information in
smaller units called catalog entries. Each entry has an entry type that identifies its
purpose to SAS. A single SAS catalog can contain several types of catalog entries. Some
catalog entries contain system information such as key definitions. Other catalog entries
contain application information such as window definitions, help windows, formats,
informats, macros, or graphics output. You can list the contents of a catalog using
various SAS features, such as SAS Explorer and PROC CATALOG.
SAS Catalog Names
Parts of a Catalog Name
SAS catalog entries are fully identified by a four-level name in the following form:
libref.catalog.entry-name.entry-type
671

Get SAS 9.4 Language Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.