Selecting Time Series When Native Frequency Is Greater Than

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

                   SAS SAMPLE LIBRARY

       Name: fredex04.sas
Description: Example program from SAS/ETS User's Guide,
             The SASEFRED Interface Engine
      Title: Selecting Time Series When Native Frequency Is Greater Than
             Requested Frequency
    Product: SAS/ETS Software
       Keys: FRED data extraction
      Procs: SASEFRED
      Notes: Read this before you run this sample.
             The sample data provided resides in the ets/sasmisc folder.
             If you are using automap=READONLY, then you must copy the
             map of your incoming XML data to a writeable folder before
             using it. So, define a system environment variable,
             FRED, to the path of your  writeable folder containing
             the FREDEX04.MAP file and FREDEX04.xml.
             To assign a fileref to the external file to be processed,
             use the following form of the libname statement:

           libname fred sasefred "%sysget(FRED)"
              OUTXML=fredex04
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(FRED)fredex04.map"
              APIKEY='<your FRED apikey>'
              IDLIST='dfincp,dnfincp,ffincp,fnfincp,absitcmahdfs'
              START='2010-01-01''
              END='2010-05-20'
              FREQ='q'
              OUTPUT=1
              FORMAT=xml
              ;
 ----------------------------------------------------------------*/

options validvarname=any
   sslcalistloc="/SASSecurityCertificateFramework/1.1/cacerts/trustedcerts.pem";

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;