SASEBEA Interface Engine
Example 22.6 Net Income and Sales for Brazilian, Canadian, and UAE Affiliates of US Parent Enterprises
In this example, the BEA data set name is MNE, as specified in the SETNAME= option. The SERIESID="5,4" option specifies that the statistics for two series, Net Income and Total Sales, are requested. The COUNTRY="202,100,513" option specifies that Brazil, Canada, and the United Arab Emirates (UAE) are the three countries whose data are selected to be retrieved. The INDUSTRY=ALL option indicates that all industries are to be reported. The DIRECTIONOFINVESTMENT=OUTWARD option indicates that the United States is where the parent company is from. The CLASSIFICATION=CountryByIndustry option indicates that each country’s data are to be retrieved by industry—in this case, all industries. The YEAR='2012,2011' option specifies that the selected data are for two years, 2012 and 2011. The output is shown in Output 22.6.1, which contains 97 variables, whose names are made up of the following concatenations in this order: 'SeriesID_', series ID, 'ROW_', row position, 'COL_', and industry code (column code). The OUTJSON= option specifies the name of the SAS output data set, which is also the name of the JSON data file that is retrieved from the BEA website and read into SAS. Output 22.6.1 shows the output for 2011 and 2012. Note that the SASEBEA engine sorts the years in chronological order, even though they can be specified in any order. Also, the output value, "(D)", indicates that the data in the cell have been suppressed to avoid disclosure of data of individual companies.
options;
title 'Net Income and Sales for Brazil, Canada, and UAE Affiliates
of US Parent Enterprises';
LIBNAME beamne sasebea "physical path to your folder for storing the BEA data"
setname=MNE
seriesid="5,4"
country="202,100,513"
industry=ALL
directionofinvestment=outward
classification=CountryByIndustry
user='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
nonbankaffiliatesonly=0
ownershiplevel=0
outjson=USAMNE
year='2012,2011'
format=json;
data myUSAMNE;
set beamne.USAMNE;
run;
proc print data=myUSAMNE; run;
Output 22.6.1: Net Income and Sales for Brazilian, Canadian, and UAE Affiliates of US Parent Enterprises: From MNE Data Set 2011 to 2012
| Net Income and Sales for Brazil, Canada, and UAE Affiliatesof US Parent Enterprises |
| Obs | Date | SeriesID_4_ROW_1_COL_0000 | SeriesID_4_ROW_2_COL_3250 | SeriesID_4_ROW_3_COL_3340 | SeriesID_4_ROW_4_COL_3350 | SeriesID_4_ROW_5_COL_5200 | SeriesID_4_ROW_6_COL_3110 | SeriesID_4_ROW_7_COL_5100 | SeriesID_4_ROW_8_COL_3330 | SeriesID_4_ROW_9_COL_2100 | SeriesID_4_ROW_10_COL_9999 | SeriesID_4_ROW_11_COL_3310 | SeriesID_4_ROW_12_COL_5400 | SeriesID_4_ROW_13_COL_4400 | SeriesID_4_ROW_14_COL_3000 | SeriesID_4_ROW_15_COL_3360 | SeriesID_4_ROW_16_COL_4200 | SeriesID_4_ROW_17_COL_0000 | SeriesID_4_ROW_18_COL_3250 | SeriesID_4_ROW_19_COL_3340 | SeriesID_4_ROW_20_COL_3350 | SeriesID_4_ROW_21_COL_5200 | SeriesID_4_ROW_22_COL_3110 | SeriesID_4_ROW_23_COL_5100 | SeriesID_4_ROW_24_COL_3330 | SeriesID_4_ROW_25_COL_2100 | SeriesID_4_ROW_26_COL_9999 | SeriesID_4_ROW_27_COL_3310 | SeriesID_4_ROW_28_COL_5400 | SeriesID_4_ROW_29_COL_4400 | SeriesID_4_ROW_30_COL_3000 | SeriesID_4_ROW_31_COL_3360 | SeriesID_4_ROW_32_COL_4200 | SeriesID_4_ROW_33_COL_0000 | SeriesID_4_ROW_34_COL_3250 | SeriesID_4_ROW_35_COL_3340 | SeriesID_4_ROW_36_COL_3350 | SeriesID_4_ROW_37_COL_5200 | SeriesID_4_ROW_38_COL_3110 | SeriesID_4_ROW_39_COL_5100 | SeriesID_4_ROW_40_COL_3330 | SeriesID_4_ROW_41_COL_2100 | SeriesID_4_ROW_42_COL_9999 | SeriesID_4_ROW_43_COL_3310 | SeriesID_4_ROW_44_COL_5400 | SeriesID_4_ROW_45_COL_4400 | SeriesID_4_ROW_46_COL_3000 | SeriesID_4_ROW_47_COL_3360 | SeriesID_4_ROW_48_COL_4200 | SeriesID_5_ROW_49_COL_0000 | SeriesID_5_ROW_50_COL_3250 | SeriesID_5_ROW_51_COL_3340 | SeriesID_5_ROW_52_COL_3350 | SeriesID_5_ROW_53_COL_5200 | SeriesID_5_ROW_54_COL_3110 | SeriesID_5_ROW_55_COL_5100 | SeriesID_5_ROW_56_COL_3330 | SeriesID_5_ROW_57_COL_2100 | SeriesID_5_ROW_58_COL_9999 | SeriesID_5_ROW_59_COL_3310 | SeriesID_5_ROW_60_COL_5400 | SeriesID_5_ROW_61_COL_4400 | SeriesID_5_ROW_62_COL_3000 | SeriesID_5_ROW_63_COL_3360 | SeriesID_5_ROW_64_COL_4200 | SeriesID_5_ROW_65_COL_0000 | SeriesID_5_ROW_66_COL_3250 | SeriesID_5_ROW_67_COL_3340 | SeriesID_5_ROW_68_COL_3350 | SeriesID_5_ROW_69_COL_5200 | SeriesID_5_ROW_70_COL_3110 | SeriesID_5_ROW_71_COL_5100 | SeriesID_5_ROW_72_COL_3330 | SeriesID_5_ROW_73_COL_2100 | SeriesID_5_ROW_74_COL_9999 | SeriesID_5_ROW_75_COL_3310 | SeriesID_5_ROW_76_COL_5400 | SeriesID_5_ROW_77_COL_4400 | SeriesID_5_ROW_78_COL_3000 | SeriesID_5_ROW_79_COL_3360 | SeriesID_5_ROW_80_COL_4200 | SeriesID_5_ROW_81_COL_0000 | SeriesID_5_ROW_82_COL_3250 | SeriesID_5_ROW_83_COL_3340 | SeriesID_5_ROW_84_COL_3350 | SeriesID_5_ROW_85_COL_5200 | SeriesID_5_ROW_86_COL_3110 | SeriesID_5_ROW_87_COL_5100 | SeriesID_5_ROW_88_COL_3330 | SeriesID_5_ROW_89_COL_2100 | SeriesID_5_ROW_90_COL_9999 | SeriesID_5_ROW_91_COL_3310 | SeriesID_5_ROW_92_COL_5400 | SeriesID_5_ROW_93_COL_4400 | SeriesID_5_ROW_94_COL_3000 | SeriesID_5_ROW_95_COL_3360 | SeriesID_5_ROW_96_COL_4200 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2011 | 202,988 | 28,132 | 4,186 | 3,978 | 14,819 | 26,318 | 9,437 | 11,988 | 7,404 | (D) | 3,341 | 5,888 | (D) | 128,340 | 29,802 | 17,691 | 664,129 | 35,394 | 11,258 | 3,492 | 34,254 | 29,637 | 8,235 | 9,125 | 60,309 | 46,997 | 9,365 | 19,634 | 78,350 | 282,831 | 82,428 | 133,518 | 27,608 | (D) | (D) | (D) | 864 | (D) | (D) | (D) | 8,169 | 1,091 | 31 | (D) | 1 | 4,045 | 0 | 11,094 | 13,084 | 2,128 | -93 | (D) | 1,353 | 508 | 977 | 373 | 1,140 | 2,064 | -68 | 505 | 190 | 6,519 | 768 | 335 | 87,740 | 3,984 | 670 | 222 | 8,089 | 1,520 | 626 | 819 | 6,264 | 39,577 | 273 | 1,611 | 3,797 | 23,769 | 3,301 | 4,006 | 1,753 | 220 | (D) | 1 | 250 | 9 | (D) | (D) | 528 | 85 | (D) | 85 | -5 | (D) | 0 | 400 |
| 2 | 2012 | 200,364 | 29,256 | 5,221 | (D) | 14,562 | 31,158 | 9,674 | 11,203 | 5,650 | (D) | 3,659 | 6,090 | (D) | 128,347 | 27,135 | 17,547 | 664,152 | 35,379 | 11,479 | 4,377 | 28,784 | 32,441 | 8,747 | 8,989 | 40,382 | 47,634 | 9,408 | 21,066 | 83,512 | 279,649 | 83,747 | 154,377 | 29,664 | (D) | (D) | (D) | 1,043 | (D) | (D) | (D) | 9,198 | 842 | (D) | (D) | (D) | 4,110 | 0 | 11,981 | 10,407 | 895 | 62 | (D) | 2,165 | 597 | 611 | 4 | 425 | 2,343 | -57 | 539 | -145 | 4,520 | 672 | -52 | 64,754 | 4,410 | 665 | 518 | 5,550 | 1,297 | 1,007 | 812 | 633 | 29,882 | -444 | 1,854 | 2,644 | 15,691 | -185 | 7,493 | 2,426 | 232 | (D) | 1 | 209 | (D) | (D) | (D) | 717 | 56 | 8 | 81 | -3 | (D) | 0 | (D) |