You can use ADD FILESs to cut your dataset down to a specified list of variables. For example,
add files /file=* /keep = salary jobcat.
If you can do the selection by specifying a regular expression, try the SPSSINC SELECT VARIABLES extension command, which you can install from the Extensions > Extension Hub menu. E.g.
SPSSINC SELECT VARIABLES MACRONAME = !age /PROPERTIES PATTERN= ".*age".
would create a macro named !age listing all the names containing "age". Then you could used that in add files:
add files /file=* /keep !age.
Using this command, you can also base selection on variable type and other metadata.
#SPSSStatistics#Support#SupportMigration