Mofi wrote:SPSS has a crazy syntax! How does the SPSS interpreter know, where the . is really the end of a comment? Does it also interpret the content of a comment?
SPSS interprets "." as end of a command if it is the last character in the line.
So,
AAAAA
AA"file.ext"AAA
AAAAA.
BBBBB.
CCCCC
CCC"file.ext"CC.
are three commands with 3,1,2 lines, respectively.
You don't have to use multiline commands, but it's rather annoying to change all your scripts that you use/expand more often to this less readable form.
I can't get the new Block comments to work, and even if I did, I'm not quite sure If all the people here would change their scripts.
The main problem still is that I dont want the "." in
* GET FILE= "filename.ext".
to be parsed.
An example:
SAVE OUTFILE='D:\dir\file.sav'.
is parsed correctly. The "." is within quotes and is not considered end of command.
But when you comment that whole line out:
* SAVE OUTFILE='D:\dir\file.sav'.
the comment ends on the "." after "file"
So it's more a problem of priorities. If UEdit thinks that there is only comment coming and is ignorick quotes, then the comment is off when there is a "." within the comment, like here:
* This is a comment and the last part is . ignored.
SPSS is cool with that. Only UEdit screws up.
Greetings from Frankfurt!