/*This program reads a DRI Basic Economics data file using PROC DATASOURCE, creates a SAS dataset containing three variables, and prints out the first ten observations from that dataset. pmb 5/12/2005 */ /*Modify filename statement to read most current file update.*/ /*Modify libname statement to create a dataset in your own userspace.*/ filename in1 'U:\archivedata\econ\023\basic.feb2005' ; libname ssd 'U:\User4\netid\' ; proc datasource filetype=dribasic infile=in1 interval=quarter out=ssd.gnp; keep GNPQ GNPCQ; /*Gross National Product and Command-Basis Gross National Product time series. Date of observation is automatically included as a variable by proc datasource.* run; proc print data=ssd.gnp (obs=10); title 'First 10 observations from gnp.sas7bdat'; run; /*GNPCQ time series began in 1959, so early years contain missing values.*/