The SASEXFSD Interface Engine (Experimental)

Example 43.5 Retrieving Data by Using ISON and ISONParams

This example shows how to use the ExtractDataSnapshot factlet to retrieve price-to-earnings (PE) data for the quarterly estimate period by using ISON and ISONParams. For brevity, only a subset of the output (the first 10 CUSIPs) is displayed.

title 'Retrieve Price-to-Earnings Data by Using ISON/ISONParams';
libname _all_ clear;

libname xfsd sasexfsd "%sysget(FACTSET)"
   factlet=ExtractDataSnapshot
   ison='sp500'
   isonparams='0,1'
   items='ff_pe'
   dates='20110401'
   period=QTR
   format=sml
   outXml=fsdex10
   automap=replace
   mapref=MyMap
   xmlmap="%sysget(FACTSET)fsdex10.map"
   orientation=eti
   user='XXXXXXXXXXXXXXXX'
   pass='XXXXXXXXXXXXXXXX';

data snapIson;
   set xfsd.fsdex10;
run;
proc print
   data=snapIson  (firstobs=1 obs=10);
run;

Output 43.5.1: Price-to-Earnings Data by Using ISON and ISONParams

Retrieve Price-to-Earnings Data by Using ISON/ISONParams

Obs FQL_Entity date pe
1 17290810 04-01-2011 12.336
2 41308610 04-01-2011 11.103
3 80311110 04-01-2011 105.294
4 80589M10 04-01-2011 13.500
5 50242410 04-01-2011 8.505
6 91301710 04-01-2011 14.635
7 97665710 04-01-2011 13.860
8 00130H10 04-01-2011 17.689
9 31190010 04-01-2011 25.723
10 20911510 04-01-2011 14.712