Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: updated version of -lookfor_all- is available from SSC


From   "Zurab Sajaia" <[email protected]>
To   <[email protected]>
Subject   Re: st: updated version of -lookfor_all- is available from SSC
Date   Mon, 5 Feb 2007 13:58:09 -0500

Thanks a lot Austin,

I've replaced the line with
if missing("`codebook'") local instr "in 1";
quietly capture use `"`file'"' `instr';

Data in memory is always preserved, now I'm thinking to add an option -nopreserve- to speed up the program further.
Zurab


----- Original Message ----- From: "Austin Nichols" <[email protected]>
To: <[email protected]>
Sent: Monday, February 05, 2007 1:39 PM
Subject: Re: st: updated version of -lookfor_all- is available from SSC



Zurab--
I haven't downloaded or tried  -lookfor_all- but I had a look at the
code, and it seems to me that the line
 quietly capture use "`file'"
could be
 quietly capture use "`file'" in 1
since you only need the first observation to load labels and variable
names, if no call to -codebook- is called for, thus much reducing the
need for memory (you could add another -use- to load all data only
-if- `codebook' is specified).  You could also add an option to
-preserve- the data in memory.

On 2/5/07, Zurab Sajaia <[email protected]> wrote:
Thanks you Kit Baum, updated version of -lookfor_all- is available from SSC
archives.

There was a bug found in the program. The problem was that -lookfor_all-
skipped data files of size bigger then memory allocated to the data area,
without issuing any warning message. As a result the program failed to find
variables/labels matching the pattern in big files.

You can download the corrected version by typing;

adoupdate lookfor_all, update; or
ssc install lookfor_all, replace.

Thanks,
zurab
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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