The SASEXFSD Interface Engine (Experimental)

The ExtractDataSnapshot Factlet

The ExtractDataSnapshot factlet efficiently extracts multiple items as of a single date for a universe of both equity and fixed income securities. It uses the FactSet screening language to extract data for a large universe of securities as of a single date. The ExtractDataSnapshot factlet uses the options listed in Table 43.11, such as the IDS= option, which specifies the IDs for one or more securities, or you can specify fixed securities with the UNIVERSEGROUP= option. If you want to access only current constituents, use the ISON= option to specify your ISON codes instead of using the IDS= option. If your ISON code uses parameters, then use the ISONPARAMS= option to specify the parameters for the code that you use in your ISON= option. Use DATE=YYYYMMDD to specify the day that your snapshot is for, or use the START=, END=, and FREQ= options to specify the date for the FQL scalar data item that you want. Use the ITEMS= option to specify one or more screening items by using the name/value pair syntax. The SASEXFSD engine does not support the standard screening syntax, so use the name/value pair syntax instead. For example, instead of using ITEMS='FF_SALES(QTR,20110401)', use ITEMS='FF_SALES' PERIOD=QTR REL_DATE=20110401 in your SASEXFSD LIBNAME statement. Specify the UNIVERSEGROUP= option to choose between the EQUITY group and the DEBT group. The CAL= option enables you to set your calendar in the same way that the PSETCAL function in FQL does. You can specify the CAL= option to be LOCAL, FIVEDAY, FIVEDAYEOM, SEVENDAY, or an exchange code. The list of exchange codes is available on page ID 16610 in the FactSet Online Assistant. The ORIENTATION= option is supported only for ETI (entity time item format), which is also the default.

Table 43.11: ExtractDataSnapshot Factlet Options

Option

Description

IDS=

One or more securities; for example, IDS=IBM,MSFT; fixed securities are used in conjunction with UNIVERSEGROUP=DEBT (for example, IDS=88579EAE).

ISON=

Screening code that extracts universe; for example, ISON_SP500 is entered as ISON=SP500; ISON_MSCI_WORLD(0,1) is entered as ISON=MSCI_WORLD.

ISONPARAMS=

ISON codes that use parameters; for example, ISON_MSCI_WORLD(0,1) is entered as ISONPARAMS=0,1.

DATE=

One date(default is 0B—today’s date) YYYYMMDD.

START=

Valid date; START=0 (default).

END=

Valid date; END=0 (default).

FREQ=

Valid frequencies; for example, M, D, Y. See Table 43.18.

ITEMS=*

One or more screening items (only the name/value pair syntax is supported).

PERIOD=

Valid time intervals between the data points (observations) in a time series; for example, ANN, QTR, or SEMI-ANN; PERIOD=ANN (default).

UNIVERSEGROUP=

Default value is EQUITY; for DEBT securities: UNIVERSEGROUP=DEBT.

ORIENTATION=

Optional orientation (default is ETI).

CAL=

Calendar setting that replicates the PSETCAL function; for example, LOCAL, FIVEDAY, FIVEDAYEOM, or SEVENDAY, for exchange code CAL=AAM (for a list of exchange codes, see page ID 16610 in the FactSet Online Assistant).

* SAS 9.3 supports only the data items that return numeric values.