Resources

GLOBAL INSIGHT:DRI/McGraw-Hill Format CITIBASE Files, OUTALL Data Set


/*--------------------------------------------------------------

                    SAS Sample Library

        Name: datex04a.sas
 Description: Example program from SAS/ETS User's Guide,
              The DATASOURCE Procedure

   Title: GLOBAL INSIGHT:DRI/McGraw-Hill Format CITIBASE Files, OUTALL Data Set
 Product: ETS  SAS/ETS Software
  System: ALL
    Keys: DATASOURCE  data extraction from various sources
   Procs: DATASOURCE
    Data: sasmisc: citidem.dat (DATASOURCE database files)
   Notes: Read this before you run this sample.
          The database resides in the ets/sasmisc folder. You
          must copy the database to a writeable folder before
          using it. Then define your Windows system environment
          variable, DATASRC_DATA, to the path of your
          writeable folder containing
          the citidem.dat file.
          To assign a fileref to the external file to be processed,
          use the following form of the filename statement:

filename datafile "%sysget(DATASRC_DATA)citidem.dat" RECFM=D LRECL=80;
--------------------------------------------------------------*/

options yearcutoff=1920;

filename datafile "%sysget(DATASRC_DATA)citidem.dat" RECFM=D LRECL=80;

proc datasource filetype=citibase interval=week
                outall=citiall outby=citikey;
run;

title1 'Summary Information on Weekly Data for CITIDEMO File';
proc print data=citikey;
run;

title1 'Weekly Series Available in CITIDEMO File';
proc print data=citiall( drop=label );
run;