Dear statalister,
I have the following two dataset that I need to merge:
(I am only showing a few records to illustrate data structure)
My goal is to add cusip information from Cusip_permno to my permno dataset .
Permno is a company ‘s permanent identifier – never changes. For each permno, it could correspond to more than one cusip if a company issued different types of stocks and received newly assigned cusip . the begin date and end date suggests during which time period and cusip applies. Hence, my merge is to add cusip to permno data based on the effective period cusip applies.
Data Cusip_permno
Permno | Cusip | Begindate | Enddate |
10000 | 002b0102 | 19900102 | 19931231 |
10001 | 0039b012 | 19900102 | 19920102 |
10001 | 0029b011 | 19920103 | 19941203 |
Permno | year | xvar |
10000 | 1990 | 1 |
10000 | 1991 | 2 |
10001 | 1990 | 19 |
10001 | 1992 | 92 |
10001 | 1993 | 13 |
Thanks for considering my question,
Rochelle
Comment