This example shows how to retrieve data for multiple time series that have different default frequencies. The time series are Domestic Financial Commercial Paper Outstanding (DFINCP), Domestic Nonfinancial Commercial Paper Outstanding (DNFINCP), Foreign Financial Commercial Paper Outstanding (FFINCP), Foreign Nonfinancial Commercial Paper Outstanding (FNFINCP), and Total Credit Market Assets Held by Domestic Financial Sectors (ABSITCMAHDFS). The native frequency of the first four time series is ‘Weekly’, and the native frequency of the last time series (ABSITCMAHDFS) is ‘Quarterly’. The requested frequency as it is specified by the FREQ= option is ‘Quarterly’ (FREQ=q). The native frequency of all five time series is either greater than or equal to the requested frequency. Hence, the output includes the data for all time series.
title 'Selecting Time Series When Native Frequency Is Greater Than Requested Frequency'; libname _all_ clear; libname fred sasefred "%sysget(FRED)" OUTXML=fredex04 AUTOMAP=replace MAPREF=MyMap XMLMAP="%sysget(FRED)fredex04.map" APIKEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' IDLIST='dfincp,dnfincp,ffincp,fnfincp,absitcmahdfs' START='2010-01-01' END='2010-05-20' FREQ='q' OUTPUT=1 FORMAT=xml; data diffNative_freqq; set fred.fredex04; run;
proc contents data=diffNative_freqq; run; proc print data=diffNative_freqq; run;
Output 48.4.1: Selecting Time Series When Native Frequency Is Greater Than Requested Frequency