To write a Syntax is SPSS is helpful to keep the overview over the analyses! This is easily done with SPSS when you go on ‘paste’ instead of ‘ok’ in the menus of your analyses. Furthermore you can edit the syntax manually!
The created Syntax can be saved to run the analysis later on or to present it to a docent in case of a Bachelor or Master thesis. Mistakes can be easily recognized and furthermore, the docent can follow the analyses.
Several steps are explained on this website!: