Hi,
This may sound like a very simple question, maybe it has been asked before.
I want to know how you can remove superfluous sets in a parameter without changing any of the data in the parameter.
Firstly the sets and the parameter are defined as:
sets
AreaCode,centralamerica,ItemCode,crops,ElementCode,dollars,YearCode,Year,Unit
parameter
Prices_data(AreaCode,centralamerica,ItemCode,crops,ElementCode,dollars,YearCode,Year,Unit)
Some elements of the parameter, when displayed on a listing file, would look like this:
166.Panama .56 .Maize .5532.Producer Price (USD/tonne).1999.1999.USD 281
48 .Costa Rica.56 .Maize .5532.Producer Price (USD/tonne).1999.1999.USD 217
I want the parameter to look like this:
parameter
Prices_data(centralamerica,crops,Year)
reducing the amount of sets, so that when displayed in a listing file it would be like this:
Panama.Maize.1999 281
Costa Rica.Maize.1999 217
Also I’d like to rename the set names, again, without changing the data, so that “centralamerica” has the name “region” and “year” has the name “period”, so that the parameter would look like this:
parameter
Prices_data(region,crops,time)
…is it also possible to change the order the sets with the parameter so it looks like this:
Prices_data(time,region,crops)
Thanks!