I have a SAS-table, Population1, that looks like this:
Nation Gender Number
Germany Men 41000000
Germany Women 42000000
France Men 31000000
France Women 31500000
I would like to make a new SAS-table, Population2, based on Population1. It should look like this:
Nation Population Men Women
Germany 83000000 41000000 42000000
France 61500000 31000000 315000000
Shouldn't it be possible to use the DATA step, starting like this:
DATA Population2;
set Population1;
.
.
?
But then I would have to get rid of one row for each nation. I have some problems with that. Any better way?
Susan