Hello I got problem to insheet and append all the files using forvalue loop....here is what I have done
cd "F:\climate data\New folder"
insheet using "F:\climate data\New folder\Rainfall Vulnerable\0306\AS030619.88"
save "F:\climate data\New folder\masterdata", replace
forvalue i=19.88/20.09 {
insheet using "F:\climate data\New folder\Rainfall Vulnerable\0306\AS0306`i'", clear
forvalue i= 19.89/20.09 {
append using "F:\climate data\New folder\masterdata"
}
}
Let me know if there is any alternate way....like subfolder 306 there are other 54 subfolders and data set for almost 50 years.....how can I insheet and append them all once.
Thanks in advance.
cd "F:\climate data\New folder"
insheet using "F:\climate data\New folder\Rainfall Vulnerable\0306\AS030619.88"
save "F:\climate data\New folder\masterdata", replace
forvalue i=19.88/20.09 {
insheet using "F:\climate data\New folder\Rainfall Vulnerable\0306\AS0306`i'", clear
forvalue i= 19.89/20.09 {
append using "F:\climate data\New folder\masterdata"
}
}
Let me know if there is any alternate way....like subfolder 306 there are other 54 subfolders and data set for almost 50 years.....how can I insheet and append them all once.
Thanks in advance.
Comment