You can export the output using the command OMS. Inside this command, you can specify which output elements you want to export.
If you want to export only user tables, you can run the following command.
OMS /SELECT TABLES
/IF SUBTYPES = 'Custom Table'
/DESTINATION FORMAT = XLSX
OUTFILE = '/mydir/myfile.xlsx'.
... Some CTABLES Commands ...
OMSEND.
Each user table (generated from the commands CTABLES) between OMSand OMSENDwill be exported to a single .xlsx file specified by the outfile option.
OMS . SPSS.