Retrieving Multiple Screen Items for Multiple Companies
/*----------------------------------------------------------------
SAS SAMPLE LIBRARY
Name: fsdex05.sas
Description: Example program from SAS/ETS User's Guide,
The SASEXFSD Interface Engine
Title: Retrieving Multiple Screen Items for Multiple Companies
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 fsdex05.map file and FSDEX05.xml.
To assign a fileref to the external file to be processed,
use the following form of the libname statement:
libname fsd sasexfsd "%sysget(FACTSET)"
factlet=ExtractDataSnapshot
ids='ibm,msft'
items='p_price,ff_bps'
dates='20120401'
period=QTR
format=sml
outXml=fsdex05
automap=replace
mapref=MyMap
xmlmap="%sysget(FACTSET)fsdex05.map"
orientation=eti
user=''
pass='';
----------------------------------------------------------------*/
title 'Retrieve Multiple Screen Items for Multiple Companies';
libname _all_ clear;
libname fsd sasexfsd "%sysget(FACTSET)"
factlet=ExtractDataSnapshot
ids='ibm,msft'
items='p_price,ff_sales'
dates='20110401'
period=QTR
format=sml
outXml=fsdex05
automap=replace
mapref=MyMap
xmlmap="%sysget(FACTSET)fsdex05.map"
orientation=eti
user='XXXXXXXXXXXXXXXX'
pass='XXXXXXXXXXXXXXXX';
data snapshot;
set fsd.fsdex05;
run;
proc print
data=snapshot;
run;