User - Guideamyuni PDF Converter
User - Guideamyuni PDF Converter
CHAPTER 1: INTRODUCTION........................................................... 1
ENTITIES.............................................................................................................6
DATA ITEMS.......................................................................................................9
DATE.................................................................................................................. 14
LAYOUT............................................................................................................ 16
DIRECT EDIT.................................................................................................... 18
EXECUTING A QUERY.................................................................................... 18
SECURITY SELECTION.................................................................................... 19
HEADER IDENTIFICATION............................................................................ 20
DATA ITEMS..................................................................................................... 20
GLOBAL OPTIONS........................................................................................... 21
DATA GROUPS................................................................................................. 22
PORTFOLIOS.................................................................................................... 23
OUTPUT OPTIONS.......................................................................................... 23
CHAPTER 5: INDQUERY: INDEX DATA ACCESS................................ 26
INDEX SELECTION.......................................................................................... 26
HEADER IDENTIFICATION............................................................................ 27
OUTPUT OPTIONS.......................................................................................... 28
CHAPTER 6: CCMQUERY:
CRSP/COMPUSTAT MERGED DATABASE ACCESS............................. 30
COMPANY SELECTION.................................................................................... 30
TREASURY SELECTION................................................................................... 36
DATA GROUPS................................................................................................. 39
OUTPUT OPTIONS.......................................................................................... 40
CHAPTER 8: MUTQUERY:
US SURVIVOR-BIAS-FREE MUTUAL FUND DATABASE ACCESS......... 42
SECURITY SELECTION.................................................................................... 42
DATA ITEMS..................................................................................................... 43
DATA GROUPS................................................................................................. 44
OUTPUT OPTIONS.......................................................................................... 45
REFERENCE DATA........................................................................................... 48
CRSPSift, CRSP’s Securities Information Filtering Tool, IndQuery is an access tool for CRSP Indexes included in
lets you extract data from your Stock & Index, CRSP/ the CRSP US Stock or Stock & Index Databases.
Compustat Merged, US Treasury, Mutual Fund, and
new Research Index databases. In addition to an updated CCMQuery enables you to access all Compustat data from
interface, CRSPSift offers many features designed to make the CRSP/Compustat Merged Database link history data by
accessing CRSP databases easier. Some of these features using Compustat’s GVKEY and IID identifiers.
include:
TrsQuery is a tool for accessing CRSP Daily and Monthly
Data Environments: Create a data environment for each US Treasury Databases.
set of data you use. To use a different data set, simply
select its environment from a menu and rerun your query. MutQuery provides access to the CRSP Mutual Funds
database containing fund and holdings data items.
Multiple Queries: Edit and run up to ten queries
simultaneously. RIQuery introduces CRSP’s Research Index database built
upon CRSP’s new investable index series and containing
Direct Edit: Type or paste an existing request file from a new intra-day data items.
command-line utility into a window and then save it as
a CRSPSift query. CRSPSift automatically updates its
graphical interface to reflect your query options. CRSPSIFT MINIMUM SYSTEM REQUIREMENTS
FOR THE PROFESSIONAL EDITION
Output Layout Preview: TsQuery features an animated
report preview that suggests how your output will look. Microsoft Windows XP Professional SP3 or Windows 7
This saves you the time of running a query multiple times 32- and 64-bit
to find the right format.
Display resolution of 1024 x 768 or higher
Company Selection: A company lookup utility. Search
and sort results by Company Name, PERMNO, ticker Powershell 1.0 for Windows XP. Windows 7 comes
symbol, or other identifier. prepackaged with Powershell.
CRSPSIFT UTILITIES
INSTALLING CRSPSIFT
FINDING ENVIRONMENTS
Upon launch, the Environment Startup Scanner
automatically searches the default CRSP database
installation directory (C:\crspdata). It builds and displays
environments for the most recent databases found.
4 a name, and check the Set as Default box if you want
this to the the default environment for new queries.
All Stock Databases and CRSP/Compustat Merged
Databases, for Compustat subscribers, are detected by
If your CRSP databases are installed in a directory CRSPSift and will appear in the lists below.
other than the default, click the disclosure triangle next
Chapter 2: Introduction
to Scan Folder Hint Paths under Scan Options. When you select a Stock Database, The Select CRSP/
Compustat table below displays Compustat databases
compatible with it, if any are installed. Select a
database from the list if you wish to include CRSP/
Compustat data in your environment. Finally, click
the Browse button to select a working directory where
input and output files for this environment will
A folder hint path serves as a guide telling the be directed. Click the Save button to save the new
Environment Scanner where to look for CRSP environment.
databases. The default locations are already listed. To
Only the environments that reflect the newest data
add your own, click the Add button and navigate to
cuts will automatically be displayed. Additional
the directory where your CRSP databases are installed.
combinations can be created.
Then click the Start Scan button to scan again with the
CRSPSift User Guide
ENVIRONMENT DETAILS
The Environment Details area displays the properties
of the environment currently selected in the New
And at the bottom of the screen are controls for Environments Found list. Some of these properties
managing them. You can edit or delete existing may be changed, including an environment’s name, its
environments, as well as create new ones. default status, and the working directory where query
output files are saved.
LOADING ENVIRONMENTS
Once installed databases have been scanned and
combined into environments, and each environment’s
properties are set appropriately, you can select which
environments you wish to load into CRSPSift.
ENTITIES
ENTITY FILTERS
Several entity filters are available in TsQuery, allowing
CRSPSift User Guide
data from issues trading on other exchanges. in the Portfolio List field. Refer to Chapter 4 of the
Stock and Index Data Description Guide for a list of
all portfolios and sets of portfolios.
SIC
Groups
Keep what is valid - Keep only the trading history of button. The Remove All button deletes all entities that
an issue where the selected filter applies. you have added.
Keep none if ever invalid - Discard all data on an
issue if the selected filter fails to match at any point DATA ITEMS
in the time period of the query.
Keep all if ever valid - If the selected filter matches In the Data Items screen you can select the CRSP data
an issue at any point during the time period of the items relevant to your query.
query, all data on that issue is kept.
report formatting.
Data Length
data item.
Both mnemonic codes and full item names are
Fixed Width
searched and returned for each item. Click the
column names—Item ID, Variant, Data Item Name, or The allotted number of characters that an item
Header—to change the order in which items are sorted. will be given in the output file. Fixed Width must
be greater than or equal to the Data Length for the
requested item. Note that expanding Fixed Width
does not increase a data item’s numeric precision.
Header
Item Lag
DATA ITEM PROPERTIES
Used to either lead or lag a data item. A positive
Further details about an individual item are available
number of periods will lag the data by the
on the far right of the screen.
number of periods designated in the output
Data Item Settings Data Item Description calendar, while a negative number will lead the
data item. For example, given a December 2006
date in an output file, prices requested with a two
month lag will return the October 2006 values,
and prices requested with a two month lead will
return prices for February 2007.
11 INDNO/SUBNO
Data items related to an index or portfolio require more specific information before they can be added to
the item hopper - a particular INDNO value for an index, or a particular SUBNO value for a portfolio.
When these items are selected, red text instructing you how to refine your selection appears above the Data
Item Settings area.
Chapter 3: Introduction
Click on the INDNO or SUBNO to open the list of available indexes or portfolios to which the item may
be related.
CRSPSift User Guide
12 Repeat this process until all the data items of interest to you appear in the hopper at the bottom of the screen. As in
the Entities screen, use the arrow buttons to the right of the hopper to change the order in which data items appear.
Chapter 3: Introduction
To remove a single item, select its row and click the single document button. To remove all items from the
hopper, click the multiple document button.
Click the OK button to confirm the addition of the selected items to your query. Click cancel to exit the
StkQuery Data Items window without making any changes.
To modify the settings for a data item in the hopper, select its row and click the Edit button. Change the data
item settings to your liking, and then click the Save Changes button. When you change an item’s settings from
the default, its entry in the hopper displays a Yes in the “Customized?” column. To cancel changes, click the
Cancel button.
13 GLOBAL ITEM OPTIONS
When selecting Compustat data items using the new CCM databases, several global option settings are available.
The default currency conversion option is to report data items in the currency in which they are reported. By
clicking on the drop down menu, you may change this option to convert all items to US Dollars.
Chapter 3: Introduction
You can also choose to include footnotes and/or data codes for the Compustat items in your query that have
them. The Footnote and Data Code items can also be extracted automatically for all items that have them by
choosing Yes for the settings. This can also be done manually by selecting the individual data codes or footnotes
for select data items in the Data Item Settings.
NOTE: Global options must be selected before choosing data items in order for them to be applied.
CRSPSift User Guide
It is important to note that the Global Item Options apply only to Compustat data accessed from the CRSP/
Compustat Merged Database.
KEYSETS
Keysets are CRSP-created groups of Compustat secondary keys that are used to further define Compustat data
items. CRSP has identified a default keyset for each data item. Sift allows you to override the default keysets, or
select multiple keysets in Sift.
14 On the Data Items screen, clicking on the Keyset box opens a table of all existing keysets for the items with
statistics about each. The default keyset is highlighted upon opening the box and is typically STD, or Standard.
The Keyset number is provided, the number of GVKEYs, the number of data points, the date range populated by
the data, and a description of the Keyset.
Chapter 3: Introduction
Choose different or additional keysets and click the Select button to close the window.
CRSPSift User Guide
DATE
The Date screen allows you to control what dates will be used in the output for the data items selected for
each entity.
CALENDAR OPTIONS
You can define your own set of dates for a query, or you can select one of several predefined calendars. To use
a predefined calendar, click the “Calendar Name” radio button and select a calendar—Daily, Weekly, Monthly,
Quarterly, or Annually—from the menu.
You may want to create a custom calendar with dates for output that are not available in one of the standard
Calendar Name options. Click on the Calendar File radio button to select a user-generated calendar.
Refer to the Calendar File Wizard chapter in this guide for information on creating a custom calendar file.
DATE RANGE
Date usage is linked to any date information entered in the Entities screen. If an event date is assigned to an
issue, either in the Entities screen, or included in the list entity input file, Relative Date Range should be selected.
15 A relative date range specifies a window of time, in days, based on the event date chosen in the Entities screen.
It is tied to the calendar selected for the output. Take, for example, an event date of October 18, 2005, with the
Daily calendar selected for output. We would like to limit the results of our query to information from the five
trading days preceding, but not including, the event date. To accomplish this, we first set the date range type to
Relative. Then, in the Relative Event Date Range controls, we set the first parameter to five trading days before
and the second parameter to one trading day before.
Chapter 3: Introduction
The query will now return information only from October 13, 2005 to October 17, 2005. Similarly, depending
on your needs, you could set the range to a window of days either surrounding or after a selected event date.
Helpful hint:
When using relative dates, include Date, caldt, as an output item in your query. Without caldt, all that returns is
an item’s position relative to the event date, with the event date always equal to zero.
For all queries that do not employ event dates, the default Fixed Date Range should be selected in the Date screen.
CRSPSift User Guide
If a date range is specified in the Entities tab, Fixed Date Range acts as an umbrella to the beginning and ending
dates selected, and must cover all dates requested. For example, if you used the following list entity input file, the
Fixed Date Range set in the Date screen would need to span 19751230-19961231.
Optional Parameters
The Report On menu allows you to select either a Calendar Basis or Fiscal Basis for reporting. This option
applies only to Compustat data items, controlling whether to report based on a security’s fiscal year or the
December calendar year. Queries accessing only CRSP data report on the December calendar basis.
The Display field allows you to select specific dates or a range that falls within a fixed date range that will be
displayed in the output.
16 LAYOUT
On the Layout screen you specify the file type, save location, and physical layout of a query’s output.
Chapter 3: Introduction
CRSPSift User Guide
OUTPUT OPTIONS
TsQuery can save report output in a variety of file formats. By default TsQuery saves reports as Formatted Text
files with no field delimiter, which is intended to be human-readable.
If you plan to import query output into another program for further processing, select a field delimiter from the
Field Delimiter menu. A field delimiter is a marker that tells the importing program where to split a data record
into its constituent data fields. Available options are Pipe (|), Comma (,), and Space ( ). You can enter your
own preferred field delimiter by selecting Custom and typing a value in the text field next to the menu.
In addition to Formatted Text, TsQuery can save query output directly to any of the following file formats:
without first having to execute the query. The preview Controls formatting of the dates appearing in the
is best used to visualize the appearance of Formatted
output when date headers are chosen. Options include:
Text (.txt) output. The appearance of output in other
formats, such as Excel or Matlab, will vary according FORMAT EXAMPLE
to the target application. Previewing saves time 20071231
YYYYMMDD (default)
and enhances the readability of your output. If, for
YYMMDD 071231
instance, your query uses only a few entities, you may
MM/DD/YY 12/31/07
wish to place Entity on the report’s X axis. If it uses
MM/DD/YYYY 12/31/2007
many, you may prefer to place it along the Y or Z axis
DD-mmm-YYYY 31-Dec-2007
to limit the output’s physical width.
Cal-Based 2007.4 (for the
The nature of your query will determine the proper quarterly calendar)
report layout. Use the controls to the left of the
preview pane to test various scenarios. To see how a Row Delimiter
CRSPSift User Guide
No Fill
• Z-Axis Data Flag is set to 1 or 3 To use this feature, click the Direct Edit tab. Click the
Edit button above the text area there, and then type
• Fixed Date Range is selected on the Date tab. or paste your query code, overwriting the template
query code. When you are finished, click Save. If the
No Fill does not work with relative dates. syntax of your query is correct, CRSPSift automatically
populates the appropriate fields in the other screens to
Compact
reflect your query code.
Compresses output by removing all spaces and trailing
decimal zeros in numbers. Compact is ideal for EXECUTING A QUERY
producing output to be loaded into another program.
After executing a query, click the View Output button
Delisting Returns on the CRSPSift toolbar.
For example:
Click Open to open the output file in the target
200 299 1 3 -0.50 -0.55 application (Excel 2007, in the example shown below).
StkQuery is used to extract CRSP stock header, event, and ticker symbol of Apple Computer is AAPL. Given that
time-series data items. Designed primarily to access data on knowledge, you can set the key to Active Ticker and type
an individual security, it can also access a list of securities AAPL as the identifier.
supplied in an input file, or all securities in the database.
If you do not know an identifier, click the Find… button to
Locate the StkQuery toolbar below the main CRSPSift toolbar. open the Company Search window.
14593
10107
HEADER IDENTIFICATION
Click the Header tab if it is not the active tab. In this screen, select the stock header information that you want in
Chapter 4: Introduction
DATA ITEMS
Use the Data Items tab to control what individual event and time series data items your query will use.
CRSPSift User Guide
Export to File...
DATA GROUPS
Select each item you want in your query, adjust its
parameters if necessary, and then click the Add to The Data Groups tab allows you to select combinations
Query button to add it to the Query Items area below of related event or time series data items.
the Search Results.
Available groups include:
Event Data
Adjusted Delistings
Adjusted Distributions
Adjusted Shares
Delisting History
Distribution History
Group Inclusion
NASDAQ History
Name History
Name History - Short
Portfolio History
Items in the Query Items area appear in the order that
Raw Shares History
they will appear in your query’s output. To adjust the
Shares History
23 Time Series Data Screen output appears in the output area at the bottom
of the StkQuery window.
Adjusted Market Summary
Adjustted Price, Shares
Market Summary
Price and Index Levels
Chapter 4: Introduction
PORTFOLIOS
OUTPUT TO FILE
You can also save query output in a number of external
file formats. When you choose a non-screen output
format, the Output File Name field becomes active. In
order to successfully execute the query, you must select
a location to store the output file. Click the Browse
OUTPUT OPTIONS button to do so.
OUTPUT TO SCREEN
The default option is text-based output, formatted to
fit the screen width specified in the Width control. 80
characters is the default output width.
24 Supported File Formats Clicking one of the output files links opens the File
Download dialog box.
Pipe(|) Delimited, For Import - pipe-deliimited
ASCII text, suitable for importing into databases
or software packages not directly supported by
CRSPSift. This option generates a single output file.
Chapter 4: Introduction
VIEWING OUTPUT FILES Alternatively, you can click the View Output button,
With the exception of the Pipe Delimited option, if located in the CRSPSift toolbar, to view the output
you select a non-screen output format, StkQuery will files generated by your query.
generate one or more output files, one for each unique
output of the query. When the query completes
execution, the output area displays links to the output
files generated. Each file will have the name specified
in the Output File Name field, with the addition of an
extension identifying the type of data it contains.
If a query generated only one file, the target
application will open the file directly, as shown above.
If the query resulted in multiple output files instead
of opening the files, CRSPSift will open a Windows
Explorer window showing the folder where you chose
to save output.
25 OUTPUT FILE SUFFIXES
The following table lists output file suffixes and the
type of data they indicate is contained in a file.
IndQuery is used to access index header and time-series data. button to open the Find INDNO window. If your query will
access an individual daily index, make sure you have selected
Locate the IndQuery toolbar below the main CRSPSift toolbar. Single Series from the INDNO Type menu.
First select whether your query will use the Daily or Monthly
database from the Database menu.
Specify a date range for your query. Enter dates using one of
the following formats: YYYYMMDD, YYYYMM, or YYYY.
The following table shows some examples of how to use the
various formats.
INDEX SELECTION
From the Available Index Groups menu, select the index
group that contains the index you want. Click the table
In the Choose Indno Type drop-down menu, specify
row containing your target index, and then click the Select
whether your query will access a Single Series (an individual
button. That index’s INDNO will now appear in the Enter
index) or a Group of Portfolios. Note that Single Series is for
INDNO box.
use only with a Stock and Index Database.
If you are using the Daily database, and you selected Group
of Portfolios from the INDNO Type menu, the Find
INDNO window will instead look like this:
HEADER IDENTIFICATION
In the Time Series tab, you can select the time series
data items that are relevant to your query. You can
select individual data items, choose pre-defined
groups of items, or supply a list of data items in an
input file.
INDIVIDUAL ITEMS
Select an item from the Available Items list at left, and
28 OUTPUT OPTIONS OUTPUT TO FILE
You can also save data in a number of external file
You can save the output of an IndQuery in one of formats. When you choose a non-screen output format,
several formats. Click the Output tab to show the the Output File Name field becomes active. In order
Output Options panel. to successfully execute the query, you must select a
location to store the output file. Click the Browse
Chapter 5: Introduction
OUTPUT TO SCREEN
The default option is text-based, formatted to fit
the screen width specified in the Width control. 80
characters is the default width. Screen output appears
in the hopper at the bottom of the IndQuery window.
CRSPSift User Guide
CCMQuery provides access to Compustat data for all using GVKEY with no IID, CCMQuery will automatically
securities in the Compustat universe as well as linking attach the IID of the primary isssue, most often .01.
information for those securities also in the CRSP Universe.
From the drop-down menu in the Company Selection area,
Click the New Query button on the CRSPSift toolbar. specify the key type you wish to use.
Select a data environment that includes a CRSP/Compustat
database. Highlight the CCMQuery icon, enter a descriptive
name, and then click the OK button.
First specify a date range for your query. Enter dates using
one of the following formats: YYYYMM, or YYYY. The
following table shows some examples of how to use the
various formats. Next, identify the issue or companies of interest. If you know
an identifier, enter it directly. For example, the GVKEY of
START END RESULT Apple Computer is 1690. Given that knowledge, you can set
199609 199612 All data from the beginning of Septemper through December the key to GVKEY and enter 1690 as the identifier.
of 1996
1990 (empty) All data in the year 1990 If you do not know an identifier, click the Find… button to
open the Company Lookup window.
Next, from the Date Display menu, choose either Fiscal
Period (the default) or Calendar.
COMPANY SELECTION
GVKEY - company identifier Use the search form to locate a particular company in the
GVKEY.IID - security identifier CCM database. Companies matching your search criteria
GVKEYX - index appear in a table, initially sorted by GVKEY, then by IID. If
your search yields many matches, click the column labels to
Securities linked with CRSP can be accessed by CRSP re-sort the table in the order most useful to you. When you
identifiers also (PERMNO and variations, PERMCO). have found the company you want, click its row in the table,
and then click the Select button. The GVKEY of that
Each GVKEY has associated with it a primary issue. When company will appear in the identifier field.
For company and financial statement data, if the IID Keysets are CRSP-created groups of Compustat
is not explicitly provided, the primary issue default will secondary keys that are used to further define
be provided. If security-level data is requested, both Compustat data items. CRSP has identified a default
GVKEY and IID are necessary. Accessing security data keyset for each data item. Sift allows you to override
using an input file without IID will result in an error the default keysets, or select multiple keysets in Sift.
message and the query will return no data.
ditional Keysets.
Compustat data may be accessed either by selecting
and combining individual data items in a query, or by
selecting pre-defined groups of data items.
DATA ITEMS
Click on Select/Edit Data Items to open a screen that
offers two categories: Compustat data items and Favorites. Choose different or additional keysets and click the
Select button to close the window.
Keyset Display
CRSP calls these collections of keys and values a keyset 1690 C STD INDL D 2005 9 13931
and assigns a numeric code and mnemonic tag to each 1690 C STD INDL D 2006 9 19315
unique collection. Each of these represents different 1690 C STD INDL D 2007 9 24006
screen, you can import a set of data items from a text OUTPUT TO SCREEN
file. To do so, click “Import Data Item File…” The file
The default option is text-based, formatted to fit
should contain one data item per line, in the format
the screen width specified in the Width control. 80
itemid.<keyset>. Keyset number is optional; the
characters is the default width. Screen output appears in
item’s default keyset will be used if it is omitted, as for
the hopper at the bottom of the CCMQuery window.
the data item filedate in the following example.
ofid.0
ofcd.0
ofnm.0
filedate
sale.5
Data Items list to a text file in the format described above. to save output to a text file or to clear it away. Clicking
the History tab shows you the output of every query
GROUPS execution since the session was opened.
Click on the Groups tab to view choices of pre-defined
When you switch to the query history view, the
groups of Compustat data.
buttons above the output area change to Save History
and Clear History. Save History allows you to capture
the output of an entire session. You can select a
different key (GVKEY or PERMNO, for example), or
different data or options related to the same key. Each
time you click Execute the new output is saved in the
history. Then, by clicking Save History, you can save all
the output to one text file.
OUTPUT TO FILE
CRSPSift’s TrsQuery tool is used to access CRSP Daily and to 1968 are assigned the value OXX. The earliest maturity in
Monthly US Treasuries Data. Individual treasury issues and the file with a CUSIP is February 15, 1969.
a variety of treasury series are available.
CRSPID - The CRSP Issue Identification Number in the
format YYYYMMDD. TCCCCE, where:
QUERY DATE RANGE SPECIFICATION
YYYY Maturity Year
Locate the TrsQuery toolbar below the main CRSPSift toolbar. MM Maturity Month
DD Maturity Day
T Type of Issue (TYPE)
CCCC Integer part of Coupon Rate
Specify a date range. Enter dates using one of the following (COUPRT * 100)
formats: YYYYMMDD, YYYYMM, or YYYY. The following
E Uniqueness Number (UNIQ)
table provides examples of how to use the various formats.
For example, 19850515.504250 identifies a 4¼% callable
START END RESULT
bond which matures May 15, 1985.
199609 199612 all data from the beginning of September through December
of 1996
TREASNOX - CRSP’s Unique US Treasury Index Number
1990 (empty) all data in the year 1990
Identifier. Index TREASNOX’s are 7-digit numbers between
1994 19940615 all data from the beginning of 1994 until June 15, 1994
2000001 and 2000069. The complete list of treasuries
19961231 (empty) data only on the date December 31, 1996
indexes is below:
By default, TrsQuery returns data from the last three
TREASNOX TERM TYPE DESCRIPTION
months of the CRSP database included in your query’s
INDEX FAMILY: RISKFREE
Environment. For more information on Environments, see
RISKFREE
Chapter 8: Environments. 2000001 Risk-Free Rates – 1 Month
2000002 Risk-Free Rates – 3 Month
RISKFREE2
TREASURY SELECTION 2000061 Risk Free 4-Week
2000062 Risk Free 13-Week
SELECTING A KEY TYPE 2000063 Risk Free 26-Week
Select what type of key your query will use from the Choose INDEX FAMILY: FIXEDTERM
FIXED TERM
Key Type drop-down menu in the Treasury Selection area.
2000003 1 Year Bonds, Start Date 1/31/1941
Available keys are:
2000004 2 Year Bonds, Start Date 1/31/1941
2000005 5 Year Bonds, Start Date 4/30/1941
TREASNO - (default) CRSP’s Unique US Treasury Number
2000006 7 Year Bonds, Start Date 4/30/1941
Identifier can be used to access individual issues. TREASNOs
2000007 10 Year Bonds, Start Date 5/31/1941
are 6-digit numbers between 200001 and 206341.
2000008 20 Year Bonds, Start Date 1/31/1942
2000009 30 Year Bonds, Start Date 11/29/1941
CUSIP - Treasury CUSIP. The Committee on Uniform
INDEX FAMILY: TERMSTRUCT
Security Identification Procedures began assigning CUSIP FAMA TERM STRUCTURE
identification numbers in 1968. Issues that matured prior 2000010 Fama 12 Month T-Bills – 1 Month
2000011 Fama 12 Month T-Bills – 2 Month 2000054 6-Month Certificate of Deposit Rate
2000012 Fama 12 Month T-Bills – 3 Month 2000055 30-Day Commercial Paper Rate
2000013 Fama 12 Month T-Bills – 4 Month 2000056 60-Day Commercial Paper Rate
2000014 Fama 12 Month T-Bills – 5 Month 2000057 90-Day Commercial Paper Rate
2000015 Fama 12 Month T-Bills – 6 Month 2000058 Federal Funds Effective Rate
2000016 Fama 12 Month T-Bills – 7 Month 2000059 Federal Funds Minimum Trading Range
Chapter 7: Introduction
2000017 Fama 12 Month T-Bills – 8 Month 2000060 Federal Funds Maximum Trading Range
2000018 Fama 12 Month T-Bills – 9 Month
2000019 Fama 12 Month T-Bills – 10 Month ENTERING A KEY VALUE
2000020 Fama 12 Month T-Bills – 11 Month Identify the treasury or treasuries of interest. There are
2000021 Fama 12 Month T-Bills – 12 Month
three ways to specify a key value. First, if you know
2000022 Fama 6 Month T-Bills – 1 Month
the key value you want, you can type it directly in the
2000023 Fama 6 Month T-Bills – 2 Month
text field. Another option is to browse the database
2000024 Fama 6 Month T-Bills – 3 Month
sequentially. Use the arrow buttons to the right of
2000025 Fama 6 Month T-Bills – 4 Month
the Find... button to step through the database in the
2000026 Fama 6 Month T-Bills – 5 Month
order of the key type you have chosen. Finally, the
2000027 Fama 6 Month T-Bills – 6 Month
Find… button opens the Treasuries Search window,
INDEX FAMILY: BONDMAPORT
FAMA BOND PORTFOLIO RETURN where you can use a search form to locate a particular
2000028 Fama BondPort Return – 6Mo Range <=6Month treasury in the CRSP database.
2000029 Fama BondPort Return -6Mo Range <=12Month
CRSPSift User Guide
2000030 Fama BondPort Return -6Mo Range <=18Month USING THE TREASURIES SEARCH WINDOW
2000031 Fama BondPort Return -6Mo Range <=24Month
2000032 Fama BondPort Return -6Mo Range <=30Month
2000033 Fama BondPort Return -6Mo Range <=36Month
2000034 Fama BondPort Return -6Mo Range <=42Month
2000035 Fama BondPort Return -6Mo Range <=48Month
2000036 Fama BondPort Return -6Mo Range <=54Month
2000037 Fama BondPort Return -6Mo Range <=60Month
2000038 Fama BondPort Return > 60 <= 120 Month
2000039 Fama BondPort Return > 120 Month
2000040 Fama BondPort Return -12Mo Range <=12Month
2000041 Fama BondPort Return -12Mo Range <=24Month
2000042 Fama BondPort Return -12Mo Range <= 36Month
2000043 Fama BondPort Return -12Mo Range <= 48Month
2000044 Fama BondPort Return -12Mo Range <= 60Month
If you have selected TREASNOX as your query’s
2000045 Reserved for future use – Duplicate of 2000038
key type, you can search by partial or complete
2000046 Reserved for future use – Duplicate of 2000039 TREASNOX, Index Family, or Term Type Description.
INDEX FAMILY: DISCBOND
FAMA-BLISS DISCOUNT BONDS
If you have chosen any of the other three key types,
2000047 Fama Bilss Discount Bonds 1 Year search the Treasuries Search window by one of the
2000048 Fama Bilss Discount Bonds 2 Year following criteria: TREASNO, CRSPID, CUSIP, Date
2000049 Fama Bilss Discount Bonds 3 Year Issued, or Maturity Date.
2000050 Fama Bilss Discount Bonds 4 Year
2000051 Fama Bilss Discount Bonds 5 Year Treasuries matching your search criteria appear in a
INDEX FAMILY: RATES table in the main area of the window. If your search
RATES yields many matches, click the column labels to re-sort
2000052 1-Month Certificate of Deposit Rate the table in the order most useful to you. When you
2000053 3-Month Certificate of Deposit Rate have found the treasury you want, click its row in the
38 table, and then click the Select button. Its TREASNO Note: For complete definitions of data items and
will appear in the identifier field of the Input tab. calculations employed by the CRSP US Treasury
Databases, refer to the Treasury Guide at http://www.
ACCESSING ALL TREASURIES crsp.chicagobooth.edu/documentation.
To access all treasuries in the database, select the All
Treasuries radio button.
Chapter 7: Introduction
200007
200014
200158
200161 The TrsQuery Data Items window is divided into
several areas. Items are divided into logical groups in
Save the file in your data environment’s working the Navigate/Search area.
CRSPSift User Guide
treasno
tname
tdbid
tdask
Export to File...
Select each item you want in your query, and click the
Add to Query button to add it to the Query Items area Use this option to output the Selected Data Items list
below the Search Results. to a text file containing each item’s mnemonic ItemID.
This text file may then be imported into other queries
using the Import Data Item File... button.
DATA GROUPS
SERIES
DAILY TREASURY ITEMS
By default, the output of the last query execution is
Index Daily x
shown. The Save Output and Clear Output buttons at
Quote Daily x the top of the output area allow you to save output to
Yield Daily x a text file or to clear it away. Clicking the History tab
Fixed Term shows you the output of every query execution since
Fixed Term Header x the query was opened.
Fixed Term Timeseries x
MONTHLY TREASURY ITEMS When you switch to the query history view, the
Fama Bond x buttons above the output area change to Save History
Fama-Bliss Discount x and Clear History. Save History allows you to capture
Fama-Bliss Riskfree x the output of an entire session. You can select a new
Index Monthly x treasury, or different data or options related to the
Quote Monthly x same treasury. Each time you click Execute the new
Term Struct x output is saved in the history. Then, by clicking Save
CRSPSift User Guide
Yield Monthly x History, you can save all the output to one text file.
RATES
Rates Header x OUTPUT TO FILE
Rates Timeseries x
You can also save query output in a number of external
TREASURY DESCRIPTIONS
file formats. When you choose a non-screen output
Daily Debt x
format, the Output File Name field becomes active. In
Debt x
order to successfully execute the query, you must select
Fixed Term x
a location to store the output file. Click the Browse
Rates x
Treasury Index x
button to select a location to save the file.
Treasury Issue x
Treasury Master x
Treasury Payments x
OUTPUT OPTIONS
OUTPUT TO SCREEN
The default option is text-based output, formatted to
fit the screen width specified in the Width control. SUPPORTED FILE FORMATS
80 characters is the default output width. Screen
Pipe(|) Delimited, For Import - pipe-deliimited
output appears in the output area at the bottom of the
ASCII text, suitable for importing into databases
TrsQuery window.
or software packages not directly supported by
41 CRSPSift. This option generates a single output file. Click Open to open the output file in the appropriate
application (Excel, in the example shown below).
Excel 97-2003 Workbook (*.xls) - Excel version 8.
NOTE: Excel version 8 has a row limit of 65536 total
rows. If a query generates more than that number of
rows, the output will be truncated at the row limit.
Chapter 7: Introduction
specified in the Output File Name field, with the addition The following table lists output file extensions for each
of an extension identifying the type of output it contains. type of treasury data.
MutQuery is used to extract data from the CRSP US Survivor-Bias-Free Mutual Funds Database. Access is designed for Fund
data, cross-referencing securities with funds, and for holdings company information. A subsequent release of Sift will also
allow for getting to fund information through a security. Locate the MutQuery toolbar below the main CRSPSift toolbar.
The menu bar for MutQuery is like that of most other Sift tools. The default date range is set for the most recent three
months up through the end date of the database. Specify a date range by entering any one of the following formats:
YYYYMMDD, YYYYMM, or YYYY. The following table provides examples of how to use the various formats.
SECURITY SELECTION
From the Choose Selection Type drop-down menu in the Mutual Fund Selection area,
specify the key, such as CRSP FUNDNO or CRSP COMPANY KEY, for use in your
query. In the next version of Sift, the key type that you select will limit your data item
selection to those items that are relevant to the key.
Next, identify the issue or issues of interest. If you know an identifier, you can enter it
directly. If you do not know an identifier, click the Find… button to open the Search
window. Searches for data in the Mutual Funds Database are limited to CRSP FUNDNO,
CRSP PORTNO, and CRSP COMPANY KEY for use as primary key selections.
DATA ITEMS
Chapter 8: Introduction
Note:
A future version of the Mutual Funds database will
allow for context when selecting items. Depending on the
access key that is selected – FUNDNO, PORTNO, or
COMPANY KEY, only those categories of data items that
are applicable to the key will be available for selection.
OUTPUT TO SCREEN
Chapter 8: Introduction
Helpful Hint:
Many queries on the mutual funds database can result in
large files. Consider output format when extracting data.
The screen default is appropriate for individual funds. Notes about supported Formats
Excel 2007 will be acceptable for many queries, but any
query that is extracting a large universe of funds over a Many queries on the mutual funds database result in
long date range will quickly exceed Excel row limits. SAS is large files. Consider output format when extracting data.
CRSP’s recommended output format for large query results.
The screen default is appropriate for individual funds.
Screen output appears in the output area at the bottom Pipe-deliimited ASCII text is suitable for importing
of the MutQuery window. into databases or software packages not directly
supported by CRSPSift. This option generates a single
output file.
CALENDAR FILE WIZARD Then either specify an end date in the same manner, or choose
to end after a certain number of occurrences. “Occurrences”
When using TsQuery, you can define your own set of dates, refers to the frequency you define in the Frequency area below.
or you can select one of several predefined calendars. To For example, say you define a weekly frequency recurring on
create a custom calendar with only those dates of interest to Wednesdays, and choose to end after twelve occurrences.
you, select “Calendar File...” from the Tools menu. The query report will include data only from the twelve
Wednesdays subsequent to the start date you specified.
FREQUENCY
With the date range in place, define the frequency of dates your
query will access. In the Frequency area, select a frequency from
the list at the left. If your query will use only individual dates
with no regular interval, select None. You can then select those
dates in the Custom Dates area below the Frequency area. If your
query’s calendar will have some regular frequency, select one of
the other options: Daily, Weekly, Monthly, or Yearly. When you
select one, controls appear to the right allowing you to customize
the frequency. Customization options are as follows.
Daily
to select the frequency of months and specify which path and filename. Other date options on this tab are
day of the month to include, for instance, the tenth superceded by the Calendar File option. To dismiss the
day of every other month. The other also allows you Calendar File window, click the Close button.
specify the frequency of months, the type of day to
include (e.g., Weekday, Weekend Day, or Thursday),
and when that day occurs in the month (e.g., Third REFERENCE DATA
or Last). For example, a calendar might specify the
second weekend day of every month, or the last CRSP STOCK AND INDEX DATA
Thursday of every third month. CRSPSift features built-in reference tables describing
data codes and their values. References can be found
CRSPSift User Guide
Reference Codes
Reference Numbers
When you are finished defining a custom calendar, Currency & Exchange Rates
click the Run button at the bottom of the Calendar File Economic Indicators
window to create the file. If you would like to view the
generated file, click the View File button in the dialog Reference Codes and Reference Numbers explain codes
box that appears. If not, click the Done button. The found in program output. Currency & Exchange Rates
calendar file is now saved in the location you specified. and Economic Indicator data can be displayed within
49 the reference panel or output to a variety of file formats, DOCKING SUB-WINDOWS
including Excel, SAS, and Matlab. Sub-windows in CRSPSift, such as the Batch Queries
Chapter 9: Introduction
Delisting Codes
Lipper Asset Codes
Rear Load Type
Policy
Wisenberger Objective Codes
Holding Type
Organization Type
Price Source
Primary Exchange
Security Status
Share Change Type
Share Type
Size Band Label
Trading Status
50 APPENDIX A: AVAILABLE CURRENCY CODES CURRENCY CODE CURRENCY DESCRIPTION
CHF Swiss Franc
The following is a list of the currency codes (and
Chapter 9: Introduction
Use the Environment Scanner tool search your computer for CRSP databases and automatically combine them into
valid environments.
If your databases are installed outside the default locations, you can add your own Folder Hint Paths to guide the
Environment Scanner’s search. Click the Add button next to the list of paths. Next click the Browse button and choose the
directory where you would like the Scanner to search for databases. Click OK to add the directory to the list.
To delete a Folder Hint Path, select it from the list and click the Delete button.
SCAN OPTIONS
The Environment Scanner’s Scan Options allow you to fine tune how its scan is performed. The default behavior for the
Scanner is to search defined Folder Hint Paths, scanning the top level of those folders for valid databases.
SCANNING
After setting the appropriate Scan Options, click the Start Scan button to activate the Environment Scanner.
When the scan begins, the Start Scan button is replaced with the Cancel Scan button. Click this button at any
Chapter 10: Introduction
The time it takes for a scan to complete depends on the number of directories scanned.
To add a discovered environments to CRSPSift, click the Create checkbox in its row. If you would like to modify
the environment’s settings before adding it, click the Edit button. See the discussion of CRSPSift Environments
for details on how environment editing options. When you are satisfied with the environment, click the Add
button. The new environment will now be available for use by CRSPSift query tools.
The Query Queue lists and displays details for all batch queries, as well as any open standalone queries that have
been executed at least once during the current CRSPSift session.