Dear Statalisters,
I have a problem concerning the memory storage. There is a quiet large
dataset. If I use just 6 variables,
obs: 21,041,596
vars: 6
size: 336,665,536 (56.8% of memory free)
----------------------------------------------------------------------------
---
storage display value
variable name type format label variable label
----------------------------------------------------------------------------
---
persnr long %12.0g
year1 int %8.0g
month1 byte %8.0g
year2 int %8.0g
month2 byte %8.0g
util int %8.0g
----------------------------------------------------------------------------
---
I set the memory quiet large:
At least, over 50% of allowed memory are free. There should be enought place
to generate 2 or 3 integer variables. However, if I do the following I
recieve the error message that there is no room to add a variable due to
width. I can wheter compress the data nor drop variables since it is
compressed and I need these 6 variables.
Here is the command:
. by persnr, sort: egen int maxyear2=max(year2)
What might be the problem, what should I do?