![]() Chapter Contents |
![]() Previous |
![]() Next |
The DATASOURCE Procedure |
This example illustrates how to extract data from a Direction of Trade Statistics (DOTS) data file. The DOTS data files contain only two series, EXPORTS and IMPORTS, for various sets of countries. The foreign trade figures between any two countries can be extracted by specifying their three-digit codes for COUNTRY and PARTNER BY variables. The following statements can then be used to extract quarterly EXPORTS and IMPORTS between the United States of America (COUNTRY='111') and Japan (PARTNER='158').
filename dotsfile 'host-specific-gfs-file-name' <host-options>; proc datasource filetype=imfdotsp infile=dotsfile interval=qtr out=foreign outall=forngvar; where country='111' and partner='158'; run;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.