tempname sdgp_format
postfile `sdgp_format' state gdp_pcap fyear using sdgp_format.dta
forvalues j = 1994(1)2000 {
forvalues i = 1(1)`=_N' {
post `sgdp_format' (B[`i']) (Y`j'[`i']) (`j')
}
}
postclose `sdgp_format'


I am getting "( invalid name" error while running this code. Can anyone please tell me what's wrong with this code?