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

st: MIME-Version: 1.0

From   "Ashim Kapoor" <[email protected]>
To   [email protected]
Subject   st: MIME-Version: 1.0
Date   Mon, 29 Sep 2008 12:45:46 +0530

Hello everyone,

I have 2 files.

The 1st file has 2 columns --> symbol and ticker. [ each symbol is
only in one observation ]

The 2nd file has many more columns --> symbol and many other vars. [
each symbol is in around 100 observations here ]

I want to say foreach symbol in 1st file  {

use 2nd file

keep if symbol ==above symbol

save as ticker in the 1st file


Can someone tell me how to do this ?

I guess to start with I would have to save the entire observations in
symbol var in 1st file in ONE local macro and similarly for the
ticker. Can someone tell me how to do this ?

Thank you,

*   For searches and help try:

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