You can use the SPSS Syntax Generator right here. If for some reason you don’t see anything, you can use it in a new window.
You can also find a short video tutorial at the bottom of this page.