Description
The CSV2GDX tool is used to read GDP growth rate data from the World Bank Data Catalog. To get an idea about the data, please have a look at the reference below. This model is referenced in "Getting Started Example 5 - Reading economic data from the World Bank Data Catalog" from the CSV2GDX Documentation. Keywords: CSV2GDX, data exchange, GAMS language features The option checkDate is enabled to save resources
Category : GAMS Data Utilities library
Main file : csv2gdx6.gms includes : csv2gdx6.gms GDPData.csv
$title CSV2GDX Example 6 - Reading economic Data from the World Bank Data Catalog (CSV2GDXE6,115)
$onText
The CSV2GDX tool is used to read GDP growth rate data from the World Bank Data Catalog.
To get an idea about the data, please have a look at the reference below.
This model is referenced in "Getting Started Example 5 - Reading economic data
from the World Bank Data Catalog" from the CSV2GDX Documentation.
Keywords: CSV2GDX, data exchange, GAMS language features
$offText
* The option checkDate is enabled to save resources
$if not exist GDPData.csv $abort.noError Data ist not present!
$call csv2gdx GDPData.csv id=GDPRate index=1 values=5..lastCol useHeader=y checkDate=y trace=0
$ifE errorLevel<>0 $abort Problems reading CSV file!
Set country, year;
$gdxIn GDPData.gdx
$load country = dim1
$load year = dim2
Parameter GDPRate(country,year);
$load GDPRate
$gdxIn
display country, year, GDPRate;