Previous Page | Next Page

SAS Procedures under Windows

CONTENTS Procedure: Windows



Prints descriptions of the contents of one or more SAS library files.
Windows specifics: Engine/Host Dependent Information output
See: CONTENTS Procedure in Base SAS Procedures Guide

Syntax
Details
See Also

Syntax

PROC CONTENTS <option(s)>;

option(s)

For an explanation of the available options, see the CONTENTS procedure in Base SAS Procedures Guide.


Details

The CONTENTS procedure shows the contents of a SAS set and prints the directory of the SAS library.

While most of the printed output generated by the CONTENTS procedure is the same across all operating environments, the Engine/Host Dependent Information output depends on both the operating environment and the engine. The following example output shows the Engine/Host Dependent Information that is generated for the V9 engine from these statements:

DATA SCHOOL;
   INPUT NAME $ Y GRADE CLASS $ ID;
   DATALINES;
 PHIL 1 85 MATH 234107589
 ROBERTO 1 90 ENGLISH 190873452
 CAROL 2 70 MATH 257902348
 THOMAS 2 71 ENGLISH 234567823
 JUANITA 3 98 FRENCH 876345290
 CEDRIC 3 75 HISTORY 231987222
 MARIA 4 89 PE 87654321
 ;
 PROC CONTENTS DATA=SCHOOL OUT=SCHOUT(DROP=CRDATE MODATE);
    TITLE 'SCHOOL DATASET';
    RUN;

Engine/Host Dependent Information from PROC CONTENTS Using the V9 Engine

                                                      SCHOOL DATASET                 07:52 Wednesday, October 17, 2007   1

                                                  The CONTENTS Procedure

                       Data Set Name        WORK.SCHOOL                     Observations          7
                       Member Type          DATA                            Variables             5
                       Engine               V9                              Indexes               0
                       Created              Wednesday, October 17, 2007 00:39:17 Observation Length    40
                       Last Modified        Wednesday, October 17, 2007 00:39:17 Deleted Observations  0
                       Protection                                           Compressed            NO
                       Data Set Type                                        Sorted                NO
                       Label
                       Data Representation  WINDOWS_32
                       Encoding             wlatin1 Western (Windows)

                                            Engine/Host Dependent Information

         Data Set Page Size          4096
         Number of Data Set Pages    1
         First Data Page             1
         Max Obs per Page            101
         Obs in First Data Page      7
         Number of Data Set Repairs  0
         File Name                   C:\DOCUME~1\sasusr1\LOCALS~1\Temp\SAS Temporary Files\_TD1904\school.sas7bdat
         Release Created             9.9901B0
         Host Created                XP_PRO

                                        Alphabetic List of Variables and Attributes

                                               #    Variable    Type    Len

                                               4    CLASS       Char      8
                                               3    GRADE       Num       8
                                               5    ID          Num       8
                                               1    NAME        Char      8
                                               2    Y           Num       8

The engine name (V9) is listed in the header information. The Engine/Host Dependent Information describes attributes of the data set, such as the data set page size and the maximum number of observations per page. For more information about how to interpret the data set size information, see Calculating Data Set Size.


See Also

Previous Page | Next Page | Top of Page