rename var17 varx17
will change the name of variable var17 to varx17. Note that obviously you cannot use variable lists here; rather, for each variable to be renamed a new command line has to be written.
renpfix male m
will change the name of all variables that start with "male" such that the variable names will start with "m" only.
© W. Ludwig-Mayerhofer, Stata Guide | Last update: 15 Feb 2009