Previous Page
|
Next Page
The DATASOURCE Procedure
Overview
Getting Started
Structure of a SAS Data Set Containing Time Series Data
Reading Data Files
Subsetting Input Data Files
Controlling the Frequency of Data – The INTERVAL= Option
Selecting Time Series Variables – The KEEP and DROP Statements
Controlling the Time Range of Data – The RANGE Statement
Reading in Data Files Containing Cross Sections
Obtaining Descriptive Information on Cross Sections
Subsetting a Data File Containing Cross Sections
Renaming Time Series Variables
Changing the Lengths of Numeric Variables
Syntax
PROC DATASOURCE Statement
KEEP Statement
DROP Statement
KEEPEVENT Statement
DROPEVENT Statement
WHERE Statement
RANGE Statement
ATTRIBUTE Statement
FORMAT Statement
LABEL Statement
LENGTH Statement
RENAME Statement
Details
Variable Lists
OUT= Data Set
OUTCONT= Data Set
OUTBY= Data Set
OUTALL= Data Set
OUTEVENT= Data Set
Data Elements Reference: DATASOURCE Procedure
Examples
BEA National Income and Product Accounts
BLS Consumer Price Index Surveys
BLS State and Area Employment, Hours, and Earnings Surveys
DRI/McGraw-Hill Format CITIBASE Files
DRI Data Delivery Service Database
PC Format CITIBASE Database
Quarterly COMPUSTAT Data Files
Annual COMPUSTAT Data Files, V9.2 New Filetype CSAUC3
CRSP Daily NYSE/AMEX Combined Stocks
References
Getting Started: DATASOURCE Procedure
Subsections:
Structure of a SAS Data Set Containing Time Series Data
Reading Data Files
Subsetting Input Data Files
Controlling the Frequency of Data – The INTERVAL= Option
Selecting Time Series Variables – The KEEP and DROP Statements
Controlling the Time Range of Data – The RANGE Statement
Reading in Data Files Containing Cross Sections
Obtaining Descriptive Information on Cross Sections
Subsetting a Data File Containing Cross Sections
Renaming Time Series Variables
Changing the Lengths of Numeric Variables
Previous Page
|
Next Page
|
Top of Page