changing the amount of sets in parameter
Posted: Sun Sep 15, 2019 1:32 pm
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:
Some elements of the parameter, when displayed on a listing file, would look like this:
I want the parameter to look like this:
reducing the amount of sets, so that when displayed in a listing file it would be like this:
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:
...is it also possible to change the order the sets with the parameter so it looks like this:
Thanks!
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:
Code: Select all
sets
AreaCode,centralamerica,ItemCode,crops,ElementCode,dollars,YearCode,Year,Unit
parameter
Prices_data(AreaCode,centralamerica,ItemCode,crops,ElementCode,dollars,YearCode,Year,Unit)
Code: Select all
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
Code: Select all
parameter
Prices_data(centralamerica,crops,Year)
Code: Select all
Panama.Maize.1999 281
Costa Rica.Maize.1999 217
Code: Select all
parameter
Prices_data(region,crops,time)
Code: Select all
Prices_data(time,region,crops)
Thanks!