I have some problems using table command in Stata 17

Code:
webuse nhanes2l
table (sex race) () ()

collection sex not found
r(111);
I can't build any table., in other words I can't use the table command in stata 17. That's why I have to use the comand
Code:
version 16:
in order to use the table command.