Retrieving Items Using Economic Function RETURNS
/*----------------------------------------------------------------
SAS SAMPLE LIBRARY
Name: fsdecon20.sas
Description: Example program from SAS/ETS User's Guide,
The SASEXFSD Interface Engine
Title: Retrieving Items Using Economic Function RETURNS
Product: SAS/ETS Software
Keys: FactSet data extraction
Procs: SASEXFSD
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 Windows system environment variable
,FACTSET, to the path of your writeable folder containing
the fsdecon20.map file and FSDECON20.xml file.
To assign a fileref to the external file to be processed,
use the following form of the libname statement:
libname xfsd sasexfsd "%sysget(FACTSET)"
factlet=ExtractEconData
items="ECON_EXPR_DATA('RETURNS(EURO_STAT[GDPEURNS@GR],-1AQ,4)',0,0/0/-10,q)"
format=sml
outXml=fsdecon20
automap=replace
mapref=MyMap
xmlmap="%sysget(FACTSET)fsdecon20.map"
orientation=eti
user='<your FactSet username for internet FASTfetch access>'
pass='<your FactSet password for internet FASTfetch access>';
----------------------------------------------------------------*/
option validvarname=any;
title 'Retrieve Returns Using ECON_EXPR_DATA for the GDPEURNS@GR Series';
libname _all_ clear;
libname xfsd sasexfsd "%sysget(FACTSET)"
factlet=ExtractEconData
items="ECON_EXPR_DATA('RETURNS(EURO_STAT[GDPEURNS@GR],-1AQ,4)',0,0/0/-10,q)"
format=sml
outXml=fsdecon20
automap=replace
mapref=MyMap
xmlmap="%sysget(FACTSET)fsdecon20.map"
orientation=eti
user='XXXXXXXXXXXXXXXX'
pass='XXXXXXXXXXXXXXXX';
data EUROFunc; set xfsd.fsdecon20; run;
proc print data=EUROFunc label; run;