The SASEHAVR Interface Engine

Example 42.4 Viewing Weekly Time Series from a Haver Database

The following statements show weekly data that span from September 1, 2004, to December 31, 2004:

libname lib1 sasehavr "%sysget(HAVER_DATA)" 
        freq=weekly 
        start=20040901 
        end=20041231;

data hwoutw;
   set lib1.haverw;
run;

title1 'Haver Analytics Database, Frequency=weekly, infile=haverw.dat';
title2 '  Define a range inside the data range for OUT= dataset';
title3 '  Using the START=20040901 END=20041231 LIBNAME options.';
  
proc print data=hwoutw;
run;

Output 42.4.1 shows the output.

Output 42.4.1: Defining a Range inside the Data Range for Weekly Time Series

Haver Analytics Database, Frequency=weekly, infile=haverw.dat
Define a range inside the data range for OUT= dataset
Using the START=20040901 END=20041231 LIBNAME options.

Obs DATE FA FCM1M FM1 FTA1MA FTB3 LICN
1 29AUG2004 7890.0 1.39 1360.8 27.342 1.515 275.2
2 05SEP2004 7906.2 1.46 1353.7 25.213 1.580 273.7
3 12SEP2004 7962.7 1.57 1338.3 25.255 1.635 250.6
4 19SEP2004 7982.1 1.57 1345.6 15.292 1.640 275.8
5 26SEP2004 7987.9 1.56 1359.7 15.068 1.685 282.7
6 03OCT2004 7949.5 1.54 1366.0 21.549 1.710 279.6
7 10OCT2004 7932.4 1.56 1362.3 17.183 1.685 338.7
8 17OCT2004 7956.9 1.59 1350.1 17.438 1.680 279.8
9 24OCT2004 7957.3 1.63 1346.0 12.133 1.770 317.6
10 31OCT2004 7967.6 1.75 1362.7 21.322 1.855 305.5
11 07NOV2004 7954.1 1.84 1350.4 22.028 1.950 354.8
12 14NOV2004 8009.7 1.89 1354.8 25.495 2.045 311.9
13 21NOV2004 7938.3 1.93 1364.5 24.000 2.075 356.0
14 28NOV2004 8053.4 1.99 1381.3 24.424 2.155 320.7
15 05DEC2004 8010.7 2.05 1379.3 21.862 2.195 472.7
16 12DEC2004 8054.8 2.08 1355.1 22.178 2.210 370.6
17 19DEC2004 8019.2 1.98 1358.3 12.066 2.200 374.7
18 26DEC2004 7995.5 1.89 1366.3 12.787 2.180 446.6