Selecting Time Series When Native Frequency Is Less Than
/*----------------------------------------------------------------
SAS SAMPLE LIBRARY
Name: fredex03.sas
Description: Example program from SAS/ETS User's Guide,
The SASEFRED Interface Engine
Title: Selecting Time Series When Native Frequency Is Less Than
Selected Frequencies
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 FREDEX03.MAP file and FREDEX03.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=fredex03
AUTOMAP=replace
MAPREF=MyMap
XMLMAP="%sysget(FRED)fredex03.map"
APIKEY='<your FRED apikey>'
IDLIST='dfincp,dnfincp,ffincp,fnfincp,absitcmahdfs'
START='2010-01-01''
END='2010-05-20'
FREQ='w'
OUTPUT=1
FORMAT=xml
;
----------------------------------------------------------------*/
options validvarname=any
sslcalistloc="/SASSecurityCertificateFramework/1.1/cacerts/trustedcerts.pem";
title 'Selecting Time Series When Native Frequency Is Less Than Requested Frequency';
libname _all_ clear;
libname fred sasefred "%sysget(FRED)"
OUTXML=fredex03
AUTOMAP=replace
MAPREF=MyMap
XMLMAP="%sysget(FRED)fredex03.map"
APIKEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
IDLIST='dfincp,dnfincp,ffincp,fnfincp,absitcmahdfs'
START='2010-01-01'
END='2010-05-20'
FREQ='w'
OUTPUT=1
FORMAT=xml;
data diffNative_freqw;
set fred.fredex03 ;
run;
proc contents data=diffNative_freqw; run;
proc print data=diffNative_freqw; run;