Procedures under UNIX |
UNIX specifics: | information displayed in the SAS output |
See: | CONTENTS Procedure in Base SAS Procedures Guide |
Syntax | |
Details | |
Example |
Syntax |
PROC CONTENTS<option(s)>; |
Details |
The CONTENTS procedure produces the same information as the CONTENTS statement in the DATASETS procedure. (See DATASETS Procedure: UNIX for a comparison.)
Example |
The following SAS code creates two data sets, classes.grades and classes.majors , and executes PROC CONTENTS to describe the classes.majors data set:
options nodate pageno=1; libname classes '.'; data classes.grades (label='First Data Set'); input student year state $ grade1 grade2; label year='Year of Birth'; format grade1 4.1; datalines; 1000 1980 NC 85 87 1042 1981 MD 92 92 1095 1979 PA 78 72 1187 1980 MA 87 94 ; data classes.majors(label='Second Data Set'); input student $ year state $ grade1 grade2 major $; label state='Home State'; format grade1 5.2; datalines; 1000 1980 NC 84 87 Math 1042 1981 MD 92 92 History 1095 1979 PA 79 73 Physics 1187 1980 MA 87 74 Dance 1204 1981 NC 82 96 French ; proc contents data=classes.majors; run;
Output from the CONTENTS Procedure
The SAS System 1 The CONTENTS Procedure Data Set Name CLASSES.MAJORS Observations 5 Member Type DATA Variables 6 Engine V9 Indexes 0 Created Tuesday, August 22, Observation Length 48 2006 03:10:46 PM Last Modified Tuesday, August 22, Deleted Observations 0 2006 03:10:46 PM Protection Compressed NO Data Set Type Sorted NO Label Second Data Set Data Representation HP_UX_64, RS_6000_AIX--64, SOLARIS_64, HP_IA64 Encoding latin1 Western (ISO) Engine/Host Dependent Information Data Set Page Size 8192 Number of Data Set Pages 1 First Data Page 1 Max Obs per Page 169 Obs in First Data Page 5 Number of Data Set Repairs 0 File Name /user/xxxxxx/majors.sas7bdat Release Created 9.0201B0 Host Created HP_UX Inode Number 592 Access Permission rw-r- -r- - Owner Name xxxxxx File Size (bytes) 16384 Alphabetic List of Variables and Attributes # Variable Type Len Format Label 4 grade1 Num 8 5.2 5 grade2 Num 8 6 major Char 8 3 state Char 8 Home State 1 student Char 8 2 year Num 8
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.