I want to label multiple variables in my dataset in one command, like below:

lab var ///
id "ID" ///
y_school "years of schooling" ///
occ "occupation" ///
... ///
race "race"

Stata, however, produces an error message (invalid syntax r(198)

Any suggestions on correcting this is much appreciated.