what is the command to automatically winsorize a continuous variable?

#1
I know how to use the menu to winsorise a continuous variable at the 1st and 99th percentiles. If I were to use a command, what does the command look like? say, a variable called "age", and i would like to winsorise it at the 1st and 99th percentiles and create it a new variable called "winsorisedage"
Thanks very much.
cheers
tim