![]()
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
Data Files |
Database is stored in a single file. |
|
|
INTERVAL= |
YEAR (default), QUARTER, MONTH |
|
|
BY variables |
COUNTRY |
Country Code (character, three-digits) |
|
|
CSC |
Control Source Code (character) |
|
|
PARTNER |
Partner Country Code (character, three-digits) |
|
|
VERSION |
Version Code (character) |
|
Sorting Order |
BY COUNTRY CSC PARTNER VERSION |
|
|
Series Variables |
Series variable names are the same as series codes reported in IMF Documentation prefixed by D for data and F_D for footnote indicators. |
|
|
Default KEEP List |
By default all the footnote indicators will be dropped. |
|
After downloading this particular EBCDIC formatted data set to my hard drive, I assembled the following SAS file using PROC DATASOURCE to open the IMF direction of trade data in SAS 8.2:
FILENAME TRADE 'C:\Data\directionoftrade\da7628o.ebcdic';
PROC DATASOURCE FILETYPE=IMFDOTSP
INFILE=( TRADE )
INTERVAL=YEAR
OUTSELECT=OFF
OUT=TRADEVAR
OUTBY=TRADEBY
OUTCONT=TRADECONT
OUTEVENT=TRADEEV;
KEEP _ALL_;
KEEPEVENT _ALL_;
RUN;
FILENAME tells SAS where to access the data file; the remainder of the SAS code is simply setting the some of the options within PROC DATASOURCE for this particular file. Below is a list of all the possible options within PROC DATASOURCE (from SAS 8.2 System Help):
PROC DATASOURCE: Options
PROC DATASOURCE options;
The following options can be used in the PROC DATASOURCE statement:
|
ALIGN= option |
ASCII |
DBNAME= 'database name' |
|
EBCDIC |
FAMEPRINT |
FILETYPE= entry |
|
INDEX |
INFILE= fileref |
LRECL= lrecl |
|
RECFM= recfm |
INTERVAL= interval |
OUT= SAS-data-set |
|
OUTALL= SAS-data-set |
OUTBY= SAS-data-set |
OUTCONT= SAS-data-set |
|
OUTEVENT= SAS-data-set |
OUTSELECT= ON | OFF |
|
For a complete listing of the supported data types that PROC DATASOURCE can work with, open SAS 8.2, click on the System Help drop-down menu at the top of the screen, select SAS System Help (which should be the first option on the menu), click on the Search tab, type PROC DATASOURCE into the keyword field, click on the List Topics button, select PROC DATASOURCE: Supported File Types from the Select Topic to Display menu, and click on the Display button to read through the many supported file types for this powerful SAS procedure.
Outside of political science, economics, and possibly finance, most researchers at UNT will not have a particular cause to access the IMF direction of trade data from the ICPSR. However, since PROC DATASOURCE offers the researcher a multitude of options for moving data into SAS (Bureau of Economic Analysis, Bureau of Labor Statistics, Center for Research in Security Prices, and the Organization for Economic Cooperation and Development to name a few), application of this procedure is not limited to these fields.
Until next time, happy computing trails and best wishes in your research endeavors!