SASEBEA Interface Engine

Example 22.7 Retrieving Available Time Series Names for a Specified Indicator from the ITA Data Set

In this example, the BEA data set name is ITA, as specified in the SETNAME= option. The INDICATOR="BalGds" option specifies that the request is for balance on goods time series, and AREAORCOUNTRY=ALL specifies this time series for all countries where it is available. The YEAR='2011,2012' option specifies that the selected data are for two years, 2011 and 2012. The output is shown in Output 22.7.1, which contains 112 variables, whose names are listed by the CONTENTS procedure. 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.

options validvarname=any;

title 'Request Balance on Goods Annual ITA Data for Years 2011 and 2012';
LIBNAME beaita sasebea "physical path to your folder for storing the BEA data"
   setname=ITA
   indicator="BalGds"
   areaOrCountry=All
   freq=A
   user='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'                                                                                                                                                                  
   outjson=ITAB
   year='2011,2012'
   format=json;

data myITAB;
   set beaita.ITAB;
run;

proc contents data=myITAB; run;

Output 22.7.1: Balance on Goods in All Areas or Countries: From the ITA Data Set for 2011 and 2012

Request Balance on Goods Annual ITA Data for Years 2011 and 2012

The CONTENTS Procedure

Data Set NameWORK.MYITABObservations2
Member TypeDATAVariables103
EngineV9Indexes0
Created11/17/2021 16:46:05Observation Length718
Last Modified11/17/2021 16:46:05Deleted Observations0
Protection CompressedNO
Data Set Type SortedNO
Label   
Data RepresentationSOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64, LINUX_POWER_64  
Encodinglatin1 Western (ISO)  

Engine/Host Dependent Information
Data Set Page Size65536
Number of Data Set Pages1
First Data Page1
Max Obs per Page91
Obs in First Data Page2
Number of Data Set Repairs0
Filename/sastmp/SAS_work78EB000042B6_lax95d04.unx.sas.com/myitab.sas7bdat
Release CreatedV.0400M0
Host CreatedLinux
Inode Number2951562770
Access Permissionrw-r--r--
Owner Namesaskff
File Size128KB
File Size (bytes)131072

Alphabetic List of Variables and Attributes
#VariableTypeLenLabel
2BalGdsAfricasNsaDetail_A_AfricaOChar7Balance on goods; Africa; other countries (those not listed in table 2.3); annual
7BalGdsAsiaAnhNsaDetail_A_AsiaAndChar7Balance on goods; Asia and Pacific; other countries (those not listed in table 2.3); annual
32BalGdsEuropehNsaDetail_A_EuropeOChar7Balance on goods; Europe; other countries (those not listed in table 2.3); annual
50BalGdsLatAmAOthWestHem_A_LatAmAnChar7Balance on goods; Latin America and Other Western Hemisphere; annual
57BalGdsMiddlesNsaDetail_A_MiddleEChar7Balance on goods; Middle East; other countries (those not listed in table 2.3); annual
68BalGdsOthAsidPacExcl15_A_OthAsiaChar7Balance on goods; Other Asia and Pacific (excluding 15 countries); annual
69BalGdsOthAsindPacExcl8_A_OthAsiaChar7Balance on goods; Other Asia and Pacific (excluding 8 countries); annual
72BalGdsOthMideEastExcl5_A_OthMiddChar7Balance on goods; Other Middle East (excluding 5 countries); annual
74BalGdsOthSouCenAmExcl4_A_OthSoutChar7Balance on goods; Other South and Central America (excluding 4 countries); annual
73BalGdsOthSouenAmExcl13_A_OthSoutChar7Balance on goods; Other South And Central America (excluding 13 countries); annual
75BalGdsOthWesemOthExcl3_A_OthWestChar7Balance on goods; Other Western Hemisphere, Other (excluding 3 countries); annual
90BalGdsSouthAhNsaDetail_A_SouthAnChar7Balance on goods; South and Central America; other countries (those not listed in table 2.3); annual
1DateChar4Date of observation
3TSI_ItaBalGdsAfrica_AChar7Balance on goods; Africa; annual
4TSI_ItaBalGdsAlgeria_AChar7Balance on goods; Algeria; annual
5TSI_ItaBalGdsAllOthSeas_AChar7Balance on goods; all other countries (those not listed separately in tables 2.2); annual
6TSI_ItaBalGdsArgentina_AChar7Balance on goods; Argentina; annual
8TSI_ItaBalGdsAsiaAndPac_AChar7Balance on goods; Asia and Pacific; annual
9TSI_ItaBalGdsAustralia_AChar7Balance on goods; Australia; annual
10TSI_ItaBalGdsAustria_AChar7Balance on goods; Austria; annual
11TSI_ItaBalGdsBahrain_AChar7Balance on goods; Bahrain; annual
12TSI_ItaBalGdsBelgium_AChar7Balance on goods; Belgium; annual
13TSI_ItaBalGdsBermuda_AChar7Balance on goods; Bermuda; annual
14TSI_ItaBalGdsBrazil_AChar7Balance on goods; Brazil; annual
15TSI_ItaBalGdsBrunei_AChar7Balance on goods; Brunei; annual
16TSI_ItaBalGdsBulgaria_AChar7Balance on goods; Bulgaria; annual
17TSI_ItaBalGdsCaftaDrCountries_AChar7Balance on goods; CAFTA-DR countries; annual
18TSI_ItaBalGdsCanada_AChar7Balance on goods; Canada; annual
19TSI_ItaBalGdsChile_AChar7Balance on goods; Chile; annual
20TSI_ItaBalGdsChina_AChar7Balance on goods; China; annual
21TSI_ItaBalGdsColombia_AChar7Balance on goods; Colombia; annual
22TSI_ItaBalGdsCostaRica_AChar7Balance on goods; Costa Rica; annual
23TSI_ItaBalGdsCroatia_AChar7Balance on goods; Croatia; annual
24TSI_ItaBalGdsCyprus_AChar7Balance on goods; Cyprus; annual
25TSI_ItaBalGdsCzechRep_AChar7Balance on goods; Czech Republic; annual
26TSI_ItaBalGdsDenmark_AChar7Balance on goods; Denmark; annual
27TSI_ItaBalGdsDominicanRep_AChar7Balance on goods; Dominican Republic; annual
28TSI_ItaBalGdsEU_AChar7Balance on goods; European Union; annual
29TSI_ItaBalGdsElSalvador_AChar7Balance on goods; El Salvador; annual
30TSI_ItaBalGdsEstonia_AChar7Balance on goods; Estonia; annual
31TSI_ItaBalGdsEuroArea_AChar7Balance on goods; Euro area; annual
33TSI_ItaBalGdsEurope_AChar7Balance on goods; Europe; annual
34TSI_ItaBalGdsFinland_AChar7Balance on goods; Finland; annual
35TSI_ItaBalGdsFrance_AChar7Balance on goods; France; annual
36TSI_ItaBalGdsGermany_AChar7Balance on goods; Germany; annual
37TSI_ItaBalGdsGreece_AChar7Balance on goods; Greece; annual
38TSI_ItaBalGdsGuatemala_AChar7Balance on goods; Guatemala; annual
39TSI_ItaBalGdsHonduras_AChar7Balance on goods; Honduras; annual
40TSI_ItaBalGdsHongKong_AChar7Balance on goods; Hong Kong; annual
41TSI_ItaBalGdsHungary_AChar7Balance on goods; Hungary; annual
42TSI_ItaBalGdsIndia_AChar7Balance on goods; India; annual
43TSI_ItaBalGdsIndonesia_AChar7Balance on goods; Indonesia; annual
44TSI_ItaBalGdsIntOrgAndUnalloc_AChar7Balance on goods; International organizations and unallocated; annual
45TSI_ItaBalGdsIreland_AChar7Balance on goods; Ireland; annual
46TSI_ItaBalGdsIsrael_AChar7Balance on goods; Israel; annual
47TSI_ItaBalGdsItaly_AChar7Balance on goods; Italy; annual
48TSI_ItaBalGdsJapan_AChar7Balance on goods; Japan; annual
49TSI_ItaBalGdsJordan_AChar7Balance on goods; Jordan; annual
51TSI_ItaBalGdsLatvia_AChar7Balance on goods; Latvia; annual
52TSI_ItaBalGdsLithuania_AChar7Balance on goods; Lithuania; annual
53TSI_ItaBalGdsLuxembourg_AChar7Balance on goods; Luxembourg; annual
54TSI_ItaBalGdsMalaysia_AChar7Balance on goods; Malaysia; annual
55TSI_ItaBalGdsMalta_AChar7Balance on goods; Malta; annual
56TSI_ItaBalGdsMexico_AChar7Balance on goods; Mexico; annual
58TSI_ItaBalGdsMiddleEast_AChar7Balance on goods; Middle East; annual
59TSI_ItaBalGdsMorocco_AChar7Balance on goods; Morocco; annual
60TSI_ItaBalGdsNetherlands_AChar7Balance on goods; Netherlands; annual
61TSI_ItaBalGdsNewZealand_AChar7Balance on goods; New Zealand; annual
62TSI_ItaBalGdsNicaragua_AChar7Balance on goods; Nicaragua; annual
63TSI_ItaBalGdsNigeria_AChar7Balance on goods; Nigeria; annual
64TSI_ItaBalGdsNorway_AChar7Balance on goods; Norway; annual
65TSI_ItaBalGdsOman_AChar7Balance on goods; Oman; annual
66TSI_ItaBalGdsOthAfricaExcl1_AChar7Balance on goods; Other Africa (excluding 1 country); annual
67TSI_ItaBalGdsOthAfricaExcl3_AChar7Balance on goods; Other Africa (excluding 3 countries); annual
70TSI_ItaBalGdsOthEuropeExcl32_AChar7Balance on goods; Other Europe (excluding 32 countries); annual
71TSI_ItaBalGdsOthEuropeExcl7_AChar7Balance on goods; Other Europe (excluding 7 countries); annual
76TSI_ItaBalGdsOthWestHem_AChar7Balance on goods; Other Western Hemisphere; annual
77TSI_ItaBalGdsPanama_AChar7Balance on goods; Panama; annual
78TSI_ItaBalGdsPeru_AChar7Balance on goods; Peru; annual
79TSI_ItaBalGdsPhilippines_AChar7Balance on goods; Philippines; annual
80TSI_ItaBalGdsPoland_AChar7Balance on goods; Poland; annual
81TSI_ItaBalGdsPortugal_AChar7Balance on goods; Portugal; annual
82TSI_ItaBalGdsResidualSeas_AChar7Balance on goods; residual between the commodity-based seasonally adjusted total and the sum of the seasonally adjusted individual countries and the "all other countries" aggregate; annual
83TSI_ItaBalGdsRomania_AChar7Balance on goods; Romania; annual
84TSI_ItaBalGdsRussia_AChar7Balance on goods; Russia; annual
85TSI_ItaBalGdsSaudiArabia_AChar7Balance on goods; Saudi Arabia; annual
86TSI_ItaBalGdsSingapore_AChar7Balance on goods; Singapore; annual
87TSI_ItaBalGdsSlovakia_AChar7Balance on goods; Slovakia; annual
88TSI_ItaBalGdsSlovenia_AChar7Balance on goods; Slovenia; annual
89TSI_ItaBalGdsSouthAfrica_AChar7Balance on goods; South Africa; annual
91TSI_ItaBalGdsSouthAndCenAm_AChar7Balance on goods; South and Central America; annual
92TSI_ItaBalGdsSouthKorea_AChar7Balance on goods; South Korea; annual
93TSI_ItaBalGdsSpain_AChar7Balance on goods; Spain; annual
94TSI_ItaBalGdsSweden_AChar7Balance on goods; Sweden; annual
95TSI_ItaBalGdsSwitzerland_AChar7Balance on goods; Switzerland; annual
96TSI_ItaBalGdsTaiwan_AChar7Balance on goods; Taiwan; annual
97TSI_ItaBalGdsThailand_AChar7Balance on goods; Thailand; annual
98TSI_ItaBalGdsTurkey_AChar7Balance on goods; Turkey; annual
99TSI_ItaBalGdsUkIslandsCarib_AChar7Balance on goods; United Kingdom Islands, Caribbean; annual
100TSI_ItaBalGdsUnitedKingdom_AChar7Balance on goods; United Kingdom; annual
101TSI_ItaBalGdsVenezuela_AChar7Balance on goods; Venezuela; annual
102TSI_ItaBalGdsVietnam_AChar7Balance on goods; Vietnam; annual
103TSI_ItaBalGds_AChar7Balance on goods; annual


Last updated: July 09, 2026