Hello everyone. I am new to Stata. I need your help for a short question.
I have a dataset, and I hope to write a loop that counts from a value I set, say, 300, to the total number of observation. This is my code:

import excel "data/xyz.xlsx", firstrow case(lower) clear
sca start_obs = 300
foreach i = start_obs/`r(N)'{
display `i'
}


However, I got error message repetatedy "invalid syntax". How may I write the loop to make it work?
I appreciate your help!!