Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: macros, matrices, and memory space


From   "Gabi Huiber" <[email protected]>
To   [email protected]
Subject   st: macros, matrices, and memory space
Date   Tue, 7 Oct 2008 14:03:38 -0400

Hello listers,

Does anybody know if macros and matrices compete for the same limited
memory space?

I have a series of hierarchical do-files that process a bunch of
weekly files in 28 separate geographical locations. Along the way, my
do-files declare a lot of macros, both local and global. At the same
time, there's a list of 28 matrices being declared in the very first
do-file. They are simple timelines. Each matrix has one column and a
number of rows equal to the number of existing weekly files in that
location. Each cell has that weekly file's date of arrival.

So this chain of do-files will run through the fifth location-timeline
matrix, and then it will claim that the sixth does not exist. But they
all do exist, because I declare them ahead of time and have the
do-file "matrix list" them all before any other do-file is called.
Somehow Stata records them, then forgets them. If I simply have it
skip the first five locations, it will run through the rest without
any snags.

That's why I suspect this memory space problem. Am I looking in the wrong place?

Thank you,

Gabi
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index