*SPSS syntax example by www.spss-tutorials.com.
*SPSS LEAVE command example - runs fine in SPSS version 24.
input program.
loop f1 = 1 to 3.
leave f1.
loop f2 = 1 to 3.
leave f2.
loop f3 = 1 to 3.
end case.
end loop.
end loop.
end loop.
end file.
end input program.
execute.
*System missings result from identical syntax with LEAVE removed.
input program.
loop f1 = 1 to 3.
loop f2 = 1 to 3.
loop f3 = 1 to 3.
end case.
end loop.
end loop.
end loop.
end file.
end input program.
execute.