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 validvarname=any;

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

ObsDateSeriesID_4_ROW_1_COL_0000SeriesID_4_ROW_2_COL_3250SeriesID_4_ROW_3_COL_3340SeriesID_4_ROW_4_COL_3350SeriesID_4_ROW_5_COL_5200SeriesID_4_ROW_6_COL_3110SeriesID_4_ROW_7_COL_5100SeriesID_4_ROW_8_COL_3330SeriesID_4_ROW_9_COL_2100SeriesID_4_ROW_10_COL_9999SeriesID_4_ROW_11_COL_3310SeriesID_4_ROW_12_COL_5400SeriesID_4_ROW_13_COL_4400SeriesID_4_ROW_14_COL_3000SeriesID_4_ROW_15_COL_3360SeriesID_4_ROW_16_COL_4200SeriesID_4_ROW_17_COL_0000SeriesID_4_ROW_18_COL_3250SeriesID_4_ROW_19_COL_3340SeriesID_4_ROW_20_COL_3350SeriesID_4_ROW_21_COL_5200SeriesID_4_ROW_22_COL_3110SeriesID_4_ROW_23_COL_5100SeriesID_4_ROW_24_COL_3330SeriesID_4_ROW_25_COL_2100SeriesID_4_ROW_26_COL_9999SeriesID_4_ROW_27_COL_3310SeriesID_4_ROW_28_COL_5400SeriesID_4_ROW_29_COL_4400SeriesID_4_ROW_30_COL_3000SeriesID_4_ROW_31_COL_3360SeriesID_4_ROW_32_COL_4200SeriesID_4_ROW_33_COL_0000SeriesID_4_ROW_34_COL_3250SeriesID_4_ROW_35_COL_3340SeriesID_4_ROW_36_COL_3350SeriesID_4_ROW_37_COL_5200SeriesID_4_ROW_38_COL_3110SeriesID_4_ROW_39_COL_5100SeriesID_4_ROW_40_COL_3330SeriesID_4_ROW_41_COL_2100SeriesID_4_ROW_42_COL_9999SeriesID_4_ROW_43_COL_3310SeriesID_4_ROW_44_COL_5400SeriesID_4_ROW_45_COL_4400SeriesID_4_ROW_46_COL_3000SeriesID_4_ROW_47_COL_3360SeriesID_4_ROW_48_COL_4200SeriesID_5_ROW_49_COL_0000SeriesID_5_ROW_50_COL_3250SeriesID_5_ROW_51_COL_3340SeriesID_5_ROW_52_COL_3350SeriesID_5_ROW_53_COL_5200SeriesID_5_ROW_54_COL_3110SeriesID_5_ROW_55_COL_5100SeriesID_5_ROW_56_COL_3330SeriesID_5_ROW_57_COL_2100SeriesID_5_ROW_58_COL_9999SeriesID_5_ROW_59_COL_3310SeriesID_5_ROW_60_COL_5400SeriesID_5_ROW_61_COL_4400SeriesID_5_ROW_62_COL_3000SeriesID_5_ROW_63_COL_3360SeriesID_5_ROW_64_COL_4200SeriesID_5_ROW_65_COL_0000SeriesID_5_ROW_66_COL_3250SeriesID_5_ROW_67_COL_3340SeriesID_5_ROW_68_COL_3350SeriesID_5_ROW_69_COL_5200SeriesID_5_ROW_70_COL_3110SeriesID_5_ROW_71_COL_5100SeriesID_5_ROW_72_COL_3330SeriesID_5_ROW_73_COL_2100SeriesID_5_ROW_74_COL_9999SeriesID_5_ROW_75_COL_3310SeriesID_5_ROW_76_COL_5400SeriesID_5_ROW_77_COL_4400SeriesID_5_ROW_78_COL_3000SeriesID_5_ROW_79_COL_3360SeriesID_5_ROW_80_COL_4200SeriesID_5_ROW_81_COL_0000SeriesID_5_ROW_82_COL_3250SeriesID_5_ROW_83_COL_3340SeriesID_5_ROW_84_COL_3350SeriesID_5_ROW_85_COL_5200SeriesID_5_ROW_86_COL_3110SeriesID_5_ROW_87_COL_5100SeriesID_5_ROW_88_COL_3330SeriesID_5_ROW_89_COL_2100SeriesID_5_ROW_90_COL_9999SeriesID_5_ROW_91_COL_3310SeriesID_5_ROW_92_COL_5400SeriesID_5_ROW_93_COL_4400SeriesID_5_ROW_94_COL_3000SeriesID_5_ROW_95_COL_3360SeriesID_5_ROW_96_COL_4200
12011202,98828,1324,1863,97814,81926,3189,43711,9887,404(D)3,3415,888(D)128,34029,80217,691664,12935,39411,2583,49234,25429,6378,2359,12560,30946,9979,36519,63478,350282,83182,428133,51827,608(D)(D)(D)864(D)(D)(D)8,1691,09131(D)14,045011,09413,0842,128-93(D)1,3535089773731,1402,064-685051906,51976833587,7403,9846702228,0891,5206268196,26439,5772731,6113,79723,7693,3014,0061,753220(D)12509(D)(D)52885(D)85-5(D)0400
22012200,36429,2565,221(D)14,56231,1589,67411,2035,650(D)3,6596,090(D)128,34727,13517,547664,15235,37911,4794,37728,78432,4418,7478,98940,38247,6349,40821,06683,512279,64983,747154,37729,664(D)(D)(D)1,043(D)(D)(D)9,198842(D)(D)(D)4,110011,98110,40789562(D)2,16559761144252,343-57539-1454,520672-5264,7544,4106655185,5501,2971,00781263329,882-4441,8542,64415,691-1857,4932,426232(D)1209(D)(D)(D)71756881-3(D)0(D)


Last updated: July 09, 2026