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;
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 |
| Data Set Name | WORK.MYITAB | Observations | 2 |
|---|---|---|---|
| Member Type | DATA | Variables | 103 |
| Engine | V9 | Indexes | 0 |
| Created | 11/17/2021 16:46:05 | Observation Length | 718 |
| Last Modified | 11/17/2021 16:46:05 | Deleted Observations | 0 |
| Protection | Compressed | NO | |
| Data Set Type | Sorted | NO | |
| Label | |||
| Data Representation | SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64, LINUX_POWER_64 | ||
| Encoding | latin1 Western (ISO) |
| Engine/Host Dependent Information | |
|---|---|
| Data Set Page Size | 65536 |
| Number of Data Set Pages | 1 |
| First Data Page | 1 |
| Max Obs per Page | 91 |
| Obs in First Data Page | 2 |
| Number of Data Set Repairs | 0 |
| Filename | /sastmp/SAS_work78EB000042B6_lax95d04.unx.sas.com/myitab.sas7bdat |
| Release Created | V.0400M0 |
| Host Created | Linux |
| Inode Number | 2951562770 |
| Access Permission | rw-r--r-- |
| Owner Name | saskff |
| File Size | 128KB |
| File Size (bytes) | 131072 |
| Alphabetic List of Variables and Attributes | ||||
|---|---|---|---|---|
| # | Variable | Type | Len | Label |
| 2 | BalGdsAfricasNsaDetail_A_AfricaO | Char | 7 | Balance on goods; Africa; other countries (those not listed in table 2.3); annual |
| 7 | BalGdsAsiaAnhNsaDetail_A_AsiaAnd | Char | 7 | Balance on goods; Asia and Pacific; other countries (those not listed in table 2.3); annual |
| 32 | BalGdsEuropehNsaDetail_A_EuropeO | Char | 7 | Balance on goods; Europe; other countries (those not listed in table 2.3); annual |
| 50 | BalGdsLatAmAOthWestHem_A_LatAmAn | Char | 7 | Balance on goods; Latin America and Other Western Hemisphere; annual |
| 57 | BalGdsMiddlesNsaDetail_A_MiddleE | Char | 7 | Balance on goods; Middle East; other countries (those not listed in table 2.3); annual |
| 68 | BalGdsOthAsidPacExcl15_A_OthAsia | Char | 7 | Balance on goods; Other Asia and Pacific (excluding 15 countries); annual |
| 69 | BalGdsOthAsindPacExcl8_A_OthAsia | Char | 7 | Balance on goods; Other Asia and Pacific (excluding 8 countries); annual |
| 72 | BalGdsOthMideEastExcl5_A_OthMidd | Char | 7 | Balance on goods; Other Middle East (excluding 5 countries); annual |
| 74 | BalGdsOthSouCenAmExcl4_A_OthSout | Char | 7 | Balance on goods; Other South and Central America (excluding 4 countries); annual |
| 73 | BalGdsOthSouenAmExcl13_A_OthSout | Char | 7 | Balance on goods; Other South And Central America (excluding 13 countries); annual |
| 75 | BalGdsOthWesemOthExcl3_A_OthWest | Char | 7 | Balance on goods; Other Western Hemisphere, Other (excluding 3 countries); annual |
| 90 | BalGdsSouthAhNsaDetail_A_SouthAn | Char | 7 | Balance on goods; South and Central America; other countries (those not listed in table 2.3); annual |
| 1 | Date | Char | 4 | Date of observation |
| 3 | TSI_ItaBalGdsAfrica_A | Char | 7 | Balance on goods; Africa; annual |
| 4 | TSI_ItaBalGdsAlgeria_A | Char | 7 | Balance on goods; Algeria; annual |
| 5 | TSI_ItaBalGdsAllOthSeas_A | Char | 7 | Balance on goods; all other countries (those not listed separately in tables 2.2); annual |
| 6 | TSI_ItaBalGdsArgentina_A | Char | 7 | Balance on goods; Argentina; annual |
| 8 | TSI_ItaBalGdsAsiaAndPac_A | Char | 7 | Balance on goods; Asia and Pacific; annual |
| 9 | TSI_ItaBalGdsAustralia_A | Char | 7 | Balance on goods; Australia; annual |
| 10 | TSI_ItaBalGdsAustria_A | Char | 7 | Balance on goods; Austria; annual |
| 11 | TSI_ItaBalGdsBahrain_A | Char | 7 | Balance on goods; Bahrain; annual |
| 12 | TSI_ItaBalGdsBelgium_A | Char | 7 | Balance on goods; Belgium; annual |
| 13 | TSI_ItaBalGdsBermuda_A | Char | 7 | Balance on goods; Bermuda; annual |
| 14 | TSI_ItaBalGdsBrazil_A | Char | 7 | Balance on goods; Brazil; annual |
| 15 | TSI_ItaBalGdsBrunei_A | Char | 7 | Balance on goods; Brunei; annual |
| 16 | TSI_ItaBalGdsBulgaria_A | Char | 7 | Balance on goods; Bulgaria; annual |
| 17 | TSI_ItaBalGdsCaftaDrCountries_A | Char | 7 | Balance on goods; CAFTA-DR countries; annual |
| 18 | TSI_ItaBalGdsCanada_A | Char | 7 | Balance on goods; Canada; annual |
| 19 | TSI_ItaBalGdsChile_A | Char | 7 | Balance on goods; Chile; annual |
| 20 | TSI_ItaBalGdsChina_A | Char | 7 | Balance on goods; China; annual |
| 21 | TSI_ItaBalGdsColombia_A | Char | 7 | Balance on goods; Colombia; annual |
| 22 | TSI_ItaBalGdsCostaRica_A | Char | 7 | Balance on goods; Costa Rica; annual |
| 23 | TSI_ItaBalGdsCroatia_A | Char | 7 | Balance on goods; Croatia; annual |
| 24 | TSI_ItaBalGdsCyprus_A | Char | 7 | Balance on goods; Cyprus; annual |
| 25 | TSI_ItaBalGdsCzechRep_A | Char | 7 | Balance on goods; Czech Republic; annual |
| 26 | TSI_ItaBalGdsDenmark_A | Char | 7 | Balance on goods; Denmark; annual |
| 27 | TSI_ItaBalGdsDominicanRep_A | Char | 7 | Balance on goods; Dominican Republic; annual |
| 28 | TSI_ItaBalGdsEU_A | Char | 7 | Balance on goods; European Union; annual |
| 29 | TSI_ItaBalGdsElSalvador_A | Char | 7 | Balance on goods; El Salvador; annual |
| 30 | TSI_ItaBalGdsEstonia_A | Char | 7 | Balance on goods; Estonia; annual |
| 31 | TSI_ItaBalGdsEuroArea_A | Char | 7 | Balance on goods; Euro area; annual |
| 33 | TSI_ItaBalGdsEurope_A | Char | 7 | Balance on goods; Europe; annual |
| 34 | TSI_ItaBalGdsFinland_A | Char | 7 | Balance on goods; Finland; annual |
| 35 | TSI_ItaBalGdsFrance_A | Char | 7 | Balance on goods; France; annual |
| 36 | TSI_ItaBalGdsGermany_A | Char | 7 | Balance on goods; Germany; annual |
| 37 | TSI_ItaBalGdsGreece_A | Char | 7 | Balance on goods; Greece; annual |
| 38 | TSI_ItaBalGdsGuatemala_A | Char | 7 | Balance on goods; Guatemala; annual |
| 39 | TSI_ItaBalGdsHonduras_A | Char | 7 | Balance on goods; Honduras; annual |
| 40 | TSI_ItaBalGdsHongKong_A | Char | 7 | Balance on goods; Hong Kong; annual |
| 41 | TSI_ItaBalGdsHungary_A | Char | 7 | Balance on goods; Hungary; annual |
| 42 | TSI_ItaBalGdsIndia_A | Char | 7 | Balance on goods; India; annual |
| 43 | TSI_ItaBalGdsIndonesia_A | Char | 7 | Balance on goods; Indonesia; annual |
| 44 | TSI_ItaBalGdsIntOrgAndUnalloc_A | Char | 7 | Balance on goods; International organizations and unallocated; annual |
| 45 | TSI_ItaBalGdsIreland_A | Char | 7 | Balance on goods; Ireland; annual |
| 46 | TSI_ItaBalGdsIsrael_A | Char | 7 | Balance on goods; Israel; annual |
| 47 | TSI_ItaBalGdsItaly_A | Char | 7 | Balance on goods; Italy; annual |
| 48 | TSI_ItaBalGdsJapan_A | Char | 7 | Balance on goods; Japan; annual |
| 49 | TSI_ItaBalGdsJordan_A | Char | 7 | Balance on goods; Jordan; annual |
| 51 | TSI_ItaBalGdsLatvia_A | Char | 7 | Balance on goods; Latvia; annual |
| 52 | TSI_ItaBalGdsLithuania_A | Char | 7 | Balance on goods; Lithuania; annual |
| 53 | TSI_ItaBalGdsLuxembourg_A | Char | 7 | Balance on goods; Luxembourg; annual |
| 54 | TSI_ItaBalGdsMalaysia_A | Char | 7 | Balance on goods; Malaysia; annual |
| 55 | TSI_ItaBalGdsMalta_A | Char | 7 | Balance on goods; Malta; annual |
| 56 | TSI_ItaBalGdsMexico_A | Char | 7 | Balance on goods; Mexico; annual |
| 58 | TSI_ItaBalGdsMiddleEast_A | Char | 7 | Balance on goods; Middle East; annual |
| 59 | TSI_ItaBalGdsMorocco_A | Char | 7 | Balance on goods; Morocco; annual |
| 60 | TSI_ItaBalGdsNetherlands_A | Char | 7 | Balance on goods; Netherlands; annual |
| 61 | TSI_ItaBalGdsNewZealand_A | Char | 7 | Balance on goods; New Zealand; annual |
| 62 | TSI_ItaBalGdsNicaragua_A | Char | 7 | Balance on goods; Nicaragua; annual |
| 63 | TSI_ItaBalGdsNigeria_A | Char | 7 | Balance on goods; Nigeria; annual |
| 64 | TSI_ItaBalGdsNorway_A | Char | 7 | Balance on goods; Norway; annual |
| 65 | TSI_ItaBalGdsOman_A | Char | 7 | Balance on goods; Oman; annual |
| 66 | TSI_ItaBalGdsOthAfricaExcl1_A | Char | 7 | Balance on goods; Other Africa (excluding 1 country); annual |
| 67 | TSI_ItaBalGdsOthAfricaExcl3_A | Char | 7 | Balance on goods; Other Africa (excluding 3 countries); annual |
| 70 | TSI_ItaBalGdsOthEuropeExcl32_A | Char | 7 | Balance on goods; Other Europe (excluding 32 countries); annual |
| 71 | TSI_ItaBalGdsOthEuropeExcl7_A | Char | 7 | Balance on goods; Other Europe (excluding 7 countries); annual |
| 76 | TSI_ItaBalGdsOthWestHem_A | Char | 7 | Balance on goods; Other Western Hemisphere; annual |
| 77 | TSI_ItaBalGdsPanama_A | Char | 7 | Balance on goods; Panama; annual |
| 78 | TSI_ItaBalGdsPeru_A | Char | 7 | Balance on goods; Peru; annual |
| 79 | TSI_ItaBalGdsPhilippines_A | Char | 7 | Balance on goods; Philippines; annual |
| 80 | TSI_ItaBalGdsPoland_A | Char | 7 | Balance on goods; Poland; annual |
| 81 | TSI_ItaBalGdsPortugal_A | Char | 7 | Balance on goods; Portugal; annual |
| 82 | TSI_ItaBalGdsResidualSeas_A | Char | 7 | Balance 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 |
| 83 | TSI_ItaBalGdsRomania_A | Char | 7 | Balance on goods; Romania; annual |
| 84 | TSI_ItaBalGdsRussia_A | Char | 7 | Balance on goods; Russia; annual |
| 85 | TSI_ItaBalGdsSaudiArabia_A | Char | 7 | Balance on goods; Saudi Arabia; annual |
| 86 | TSI_ItaBalGdsSingapore_A | Char | 7 | Balance on goods; Singapore; annual |
| 87 | TSI_ItaBalGdsSlovakia_A | Char | 7 | Balance on goods; Slovakia; annual |
| 88 | TSI_ItaBalGdsSlovenia_A | Char | 7 | Balance on goods; Slovenia; annual |
| 89 | TSI_ItaBalGdsSouthAfrica_A | Char | 7 | Balance on goods; South Africa; annual |
| 91 | TSI_ItaBalGdsSouthAndCenAm_A | Char | 7 | Balance on goods; South and Central America; annual |
| 92 | TSI_ItaBalGdsSouthKorea_A | Char | 7 | Balance on goods; South Korea; annual |
| 93 | TSI_ItaBalGdsSpain_A | Char | 7 | Balance on goods; Spain; annual |
| 94 | TSI_ItaBalGdsSweden_A | Char | 7 | Balance on goods; Sweden; annual |
| 95 | TSI_ItaBalGdsSwitzerland_A | Char | 7 | Balance on goods; Switzerland; annual |
| 96 | TSI_ItaBalGdsTaiwan_A | Char | 7 | Balance on goods; Taiwan; annual |
| 97 | TSI_ItaBalGdsThailand_A | Char | 7 | Balance on goods; Thailand; annual |
| 98 | TSI_ItaBalGdsTurkey_A | Char | 7 | Balance on goods; Turkey; annual |
| 99 | TSI_ItaBalGdsUkIslandsCarib_A | Char | 7 | Balance on goods; United Kingdom Islands, Caribbean; annual |
| 100 | TSI_ItaBalGdsUnitedKingdom_A | Char | 7 | Balance on goods; United Kingdom; annual |
| 101 | TSI_ItaBalGdsVenezuela_A | Char | 7 | Balance on goods; Venezuela; annual |
| 102 | TSI_ItaBalGdsVietnam_A | Char | 7 | Balance on goods; Vietnam; annual |
| 103 | TSI_ItaBalGds_A | Char | 7 | Balance on goods; annual |