How I thought I understood wildcards was that both of these series of variables should be renamed to keep only what's after the suffix (in this instance, the full 4-digit year), but obviously this is not the case based on the below example and I'm not sure what I'm misunderstanding. How would I properly rename the HGC variables?
Code:
clear input HGC08_2008 HGC10_2010 DBY2008_2008 DBY2010_2010 1 1 1 1 end rename HGC*_* HGC_* rename DBY*_* DBY_* list HGC_08 HGC_10 DBY_2008 DBY_2010
Comment