SASEBEA Interface Engine

Example 22.4 Retrieving One Table from the FixedAssets Data Set

In this example, the BEA data set name is FixedAssets, as specified in the SETNAME= option. The TABLENAME="FAAt201" specifies that the statistics for one table, named FAAt201, is requested. The table contains current-cost net stock of private fixed assets, equipment, structures, and intellectual property products by type. The YEAR='2015,2016,2017,2018,2019' option specifies that the range of data is for five years, 2015 through 2019. The output is shown in Output 22.4.1, which contains 106 variables whose names are given by the series code (with the exception of the DATE variable). The FREQ= option selects annual data, and 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.4.1 shows the output for the last five years, ranging from 2015 to 2019.

options validvarname=any;

title 'Request Table FAAt201 Statistics from Fixed Assets, Annual Data';
LIBNAME beaFAAt sasebea "physical path to your folder for storing the BEA data"
   setname=FixedAssets
   TableName="FAAt201"
   user='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'                                                                                                                                                                  
   outjson=MCOST
   year='2015,2016,2017,2018,2019'
   format=json;

data myMCOST;
   set beaFAAt.MCOST;
run;
proc print data=myMCOST; run;

Output 22.4.1: Table FAAt201: From FixedAssets Data Set 2015 to 2019

Request Table FAAt201 Statistics from Fixed Assets, Annual Data

ObsTableNameDatek1ntotl1ae00_98NoteRefk1ntotl1ae10_99k1ntotl1ae20_100k1ntotl1ae30_101k1ntotl1ae40_102k1ntotl1ae50_103k1ntotl1ei00_11k1ntotl1ei10_12k1ntotl1ei20_13k1ntotl1ei30_14k1ntotl1ei40_15k1ntotl1ei50_16k1ntotl1ei60_17k1ntotl1ens0_78k1ntotl1ens1_79k1ntotl1ens2_80k1ntotl1ens3_81k1ntotl1eo00_26k1ntotl1eo10_27k1ntotl1eo33_28k1ntotl1eo43_29k1ntotl1eo50_30k1ntotl1eo60_31k1ntotl1eo70_32k1ntotl1eo80_33k1ntotl1ep00_4k1ntotl1ep11_5k1ntotl1ep12_10k1ntotl1ep20_6k1ntotl1ep31_9k1ntotl1ep33_7k1ntotl1ep36_8k1ntotl1eq00_3k1ntotl1et00_18k1ntotl1et10_19k1ntotl1et11_20k1ntotl1et12_21k1ntotl1et20_22k1ntotl1et30_23k1ntotl1et40_24k1ntotl1et50_25k1ntotl1ip00_77k1ntotl1rd00_82k1ntotl1rd11_85k1ntotl1rd12_86k1ntotl1rd20_88k1ntotl1rd23_87k1ntotl1rd31_89k1ntotl1rd32_90k1ntotl1rd70_93k1ntotl1rd91_96k1ntotl1rd92_97k1ntotl1rdbs_83k1ntotl1rdmf_84k1ntotl1rdnm_92k1ntotl1rdnp_95k1ntotl1rdom_91k1ntotl1rdon_94k1ntotl1sb0x_57k1ntotl1sb10_58k1ntotl1sb20_59k1ntotl1sb30_40k1ntotl1sb31_41k1ntotl1sb32_42k1ntotl1sb41_60k1ntotl1sb42_61k1ntotl1sc01_46k1ntotl1sc03_44k1ntotl1sc04_45k1ntotl1schc_37k1ntotl1scxx_47k1ntotl1shc0_39k1ntotl1si00_48k1ntotl1sm00_54k1ntotl1sm01_55k1ntotl1sm02_56k1ntotl1sn00_65k1ntotl1so00_66k1ntotl1soo1_38k1ntotl1soo2_43k1ntotl1st00_36k1ntotl1stax_63k1ntotl1stlx_64k1ntotl1strx_62k1ntotl1su20_53k1ntotl1su3x_51k1ntotl1su4x_52k1ntotl1su6x_50k1ntotl1suxx_49k1ptotl1eq00_2k1ptotl1es00_1k1ptotl1ip00_76k1ptotl1st00_35k1r53101eq00_34k1r53101hh00_68k1r53101im00_74k1r53101mf00_71k1r53101mh00_72k1r53101os00_75k1r53101ot00_73k1r53101ps00_69k1r53101sf00_70k1r53101st00_67
1FAAt2012015479.2FAAt201162.4187.979.920.528.52,001.0164.2135.9269.4324.4620.6486.5579.3150.5296.0132.91,491.0324.2233.5232.1143.8176.332.1349.01,406.3238.511.7503.336.1413.9202.86,307.01,408.7536.4328.1208.3210.2404.793.4164.02,737.31,678.8478.562.8104.1106.349.450.148.118.694.81,565.51,107.6457.9113.4256.5409.82,743.6317.4525.6813.7665.8147.8561.7353.7440.3699.6331.44,848.0534.81,025.71,515.01,784.01,662.0122.0354.5174.01,816.2212.013,442.641.3415.4456.7627.71,390.7533.71,924.42,552.16,360.341,443.72,737.332,346.153.214,363.04,214.41,989.8241.175.9250.214,121.912,132.118,903.5
2FAAt2012016495.3FAAt201166.0200.279.720.728.72,035.6163.3137.6273.7327.6634.9498.5619.7164.0314.4141.41,501.1328.2232.9231.9138.2182.932.9354.11,446.1237.911.2518.936.7429.2212.26,460.21,477.4592.2380.0212.2208.5415.994.8166.02,905.01,790.0506.563.5111.3111.654.454.148.721.098.81,670.31,169.7500.6119.7268.4451.92,871.8332.5535.6827.9677.9150.0609.5377.4460.4715.0336.34,968.0542.81,044.41,548.81,721.21,592.3128.8373.7174.81,869.2216.513,765.244.8423.7468.5631.01,471.0553.42,024.42,655.36,514.143,342.22,905.033,923.253.915,308.94,505.22,083.3241.283.4260.515,067.712,984.420,158.0
3FAAt2012017515.3FAAt201170.2213.780.421.729.32,099.5167.6137.4282.2334.7661.6516.0662.9180.2334.5148.21,521.3335.8233.0232.1138.2189.434.0358.81,492.1245.610.2532.737.3445.0221.26,650.91,538.0635.9416.7219.2191.5446.197.4167.23,100.01,921.8539.965.0119.2116.460.257.151.423.4103.81,794.61,242.5552.1127.2284.8500.73,003.0343.0565.0863.0707.0156.1650.3398.0495.4744.9347.25,178.7560.11,090.81,629.01,662.51,527.8134.7389.3176.21,940.2227.814,249.549.2432.0481.2644.51,543.7588.12,131.72,776.26,706.745,154.93,100.035,348.255.815,947.64,781.62,245.3243.188.6280.915,704.413,459.221,098.7
4FAAt2012018531.7FAAt201172.9225.481.322.229.82,190.1173.9143.6297.3340.2691.4543.6719.7202.6361.3155.71,582.6351.9241.4241.6145.0194.636.2372.01,564.4258.69.7564.538.3463.9229.56,955.91,618.8704.2465.7238.5173.2473.699.1168.73,313.92,062.6577.666.1124.4120.165.358.154.125.7109.01,927.91,312.2615.7134.6300.5561.63,178.2357.7605.6917.0752.1164.9703.1425.1535.5772.5359.25,477.9577.71,161.21,741.01,616.81,474.0142.8407.0181.32,071.8244.214,982.455.3443.1498.5680.21,649.5638.82,288.22,968.47,018.547,599.63,313.937,267.162.716,817.75,092.52,373.6245.495.2279.316,572.314,198.722,284.7
5FAAt2012019552.8FAAt201177.9238.782.123.530.52,267.1175.9149.5301.9353.9715.2570.7771.1224.5382.0164.71,619.2356.8248.2248.7145.9198.638.5382.41,618.2258.49.2588.238.5486.7237.27,197.41,693.0771.7517.3254.4159.0491.0101.7169.63,530.42,206.5620.966.6125.4125.167.755.457.127.3111.42,067.81,376.1691.6138.7315.0634.53,329.9368.4641.9956.1784.2171.9750.3447.6583.3802.5375.65,756.1602.51,214.01,835.81,622.61,471.3151.3420.8183.82,178.1258.015,683.461.3455.8517.1700.81,745.8692.52,438.33,139.07,260.349,540.93,530.438,750.362.917,368.35,326.82,401.8266.2100.1271.617,102.114,700.323,066.9


Last updated: July 09, 2026