1. Check to see if you have the SPSSINC SPLIT DATASET extension command installed. If it is installed, you should see "Split into Files" as an option in the Data menu.
2. If it is not installed, click Extensions > Extension Hub. Then search on the word SPLIT and follow the instructions to install SPSSINC_SPLIT_DATASET.
3. Then do something like the following:
* Data > Split into Files.
SPSSINC SPLIT DATASET SPLITVAR=lastname firstname
/OUTPUT DIRECTORY= "C:\Temp" DELETECONTENTS=NO
/OPTIONS NAMES=VALUES.
Change the DIRECTORY setting as needed.
Here's an example I just tried using one of the sample datasets that comes with SPSS.
* Use car_sales data to illustrate.
* Change path on next line if necessary.
GET FILE "C:\SPSSdata\car_sales.sav".
* Make variable names match wht OP has.
RENAME VARIABLES ( manufact model = lastname firstname).
* Data > Split into Files.
SPSSINC SPLIT DATASET SPLITVAR=lastname firstname
/OUTPUT DIRECTORY= "C:\Temp" DELETECONTENTS=NO
/OPTIONS NAMES=VALUES.
This code generated 157 separate data files in my C:\Temp folder, one for each row in the original dataset (where there was one row for each lastname/firstname combination). Here are the first several file names:
Acura_CL.sav
Acura_Integra.sav
Acura_RL.sav
Acura_TL.sav
Audi_A4.sav
Audi_A6.sav
Audi_A8.sav
BMW_323i.sav
BMW_328i.sav
BMW_528i.sav
etc.
HTH.