The SASEXFSD Interface Engine (Experimental)

Example 43.7 Retrieving a List of Securities from an OFDB file

This example shows how to use the ExtractOFDBUniverse factlet to retrieve a list of securities that belong to a single OFDB file named SASTESTING for February 27, 2012. For brevity, only a subset of the output (the first 15 securities) is displayed.

title 'Retrieve List of Securities Belonging to a Single OFDB File';
libname _all_ clear;

libname xfsd sasexfsd "%sysget(FACTSET)"
   factlet=ExtractOFDBUniverse
   ofdb='SASTESTING.OFDB'
   dates='20120227'
   format=sml
   outXml=fsdex08
   automap=replace
   mapref=MyMap
   xmlmap="%sysget(FACTSET)fsdex08.map"
   user='XXXXXXXXXXXXXXXX'
   pass='XXXXXXXXXXXXXXXX';

data ofdbUniv;
   set xfsd.fsdex08;
run;
proc print
   data=ofdbUniv  (firstobs=1 obs=15);
run;

Output 43.7.1: List of Securities from a Single OFDB File

Retrieve List of Securities Belonging to a Single OFDB File

Obs CUSIP
1 00105510
2 00120410
3 00130H10
4 00206R10
5 00282410
6 00289620
7 00724F10
8 00790310
9 00817Y10
10 00846U10
11 00915810
12 00936310
13 00971T10
14 01381710
15 01741R10