However, you should not put a declaration like that in the data file (as you would be declaring it twice, in the model and in the data file). As Net does not contain data that you are going to change, you could just keep it in the .mod file.
.mod file
set C;
param Cost{C};
param Ric{C};
param Net {i in C} := Ric[i]-Cost[i];