Using the Descriptor Portion of a SAS Data File
Using the descriptor portion of a SAS data file
Dragos Daniel Capan
Copyright ? 2010, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ? indicates USA registration.
Outline
The descriptor portion of a dataset Prerequisite- processing a SAS data step Examples
? 2 examples on how making use of the descriptor portion makes your SAS code more efficient
? 2 examples when using the information in the descriptor makes your life a lot easier
Copyright ? 2010, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ? indicates USA registration.
Data set it's made of ...
Descriptor portion: variable names, attributes etc.
DATA
Copyright ? 2010, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ? indicates USA registration.
Descriptor portion
Information on the physical dataset
? Number of observations ? The date that the data set was created and last
modified ? Number of indexes ? Whether dataset is sorted or not
Information on individual variables
? variable name, type, length, format, informat, label, and whether the variable is indexed.
Copyright ? 2010, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ? indicates USA registration.
Descriptor portion
proc contents data=datalib.abstract; run;
OR
proc datasets library=datalib nolist; contents data=abstract;
quit;
Copyright ? 2010, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ? indicates USA registration.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- a determing contents of library ntroduction sas
- 274 2011 proc datasets the swiss army knife of sas
- paper 118 28 renamingallvariablesinasas sas support
- useful tips for handling and creating special characters
- rename and modify attributes of variables across all sas
- sas datasets procedure tip sheet
- dataset options beyond drop keep rename and where
- proc datasets managing data efficiently
- organize and manage files by using sas programming
- 086 2008 ods and output data sets what you sas support
Related searches
- the true measure of a man quote
- describe the core characteristics of a culture
- find the z score of a number
- calculate the mean of a data set
- the mean of a data set
- the 5 parts of a story
- the yearly salary of a neurosurgeon
- the real cost of a financial advisor
- find the angle calculator of a triangle
- the nitrogen cycle of a plant
- the nth term of a sequence calculator
- find the long side of a triangle