sort city
merge m:1 city using "C:\highspeed.dta"
gen gap = issue1 - time1
format gap %9.1f
gen whether1 = 1 if -730<gap & gap < 730
replace whether1 = 0 if whether1 ==.
drop _merge gap
sort symbol
save "C:\bond.dta", replace
export excel using "C:\bond.xls", firstrow(variables)