![]()  | 
  
    PING
    0.9
    
   Statistical data handling and processing in production environment 
   | 
 
Check whether a country (defined by its ISO code) belongs to a given geographic zone (e.g., EU28) in a year-time period.
ctry : ISO3166-code of a country (cases GB/UK and GR/EL handled);zone : code of a geographical zone, e.g. EU28, EA19, etc...;time : (option) selected time; if empty, it is tested whether the country ever belonged to area;cds_ctryxzone : (option) configuration file storing the description of geographical areas; by default, it is named after the value &G_PING_COUNTRYxZONE (e.g., META_COUNTRYxZONE); for further description, see %meta_countryxzone;clib : (option) name of the library where the configuration file is stored; default to the value &G_PING_LIBCFG(e.g., LIBCFG) when not set._ans_ : name of the macro variable where storing the output of the test, i.e. the boolean result (1: yes/ 0: no) of the question: _"does ctry belong to the geographical area zone?"_.
Let's first check whether HR was part of the EU28 area in 2009:
 returns ans=0. Now, what about 2014?
 returns ans=1.
Considering recent Brexit, we may also ask about UK future in the EU28 area:
 still returns ans=1, for how long however...
Run macro %_example_ctry_in_zone for more examples.
The table cds_ctryxzone contains in fact for each country in the EU+EFTA geographic area the year of entrance in/exit of (when such case applies) any given euro zone. In particular, it means that the zone defined by zone needs to be defined as a field in the table. Note that when using the default settings, a table META_COUNTRYxZONE must exist in LIBCFG.
%zone_to_ctry, %ctry_to_zone, %str_isgeo, %meta_countryxzone.