Yes. Install the SPSSINC SELECT VARIABLES extension command via Extensions > Extension Hub if you don't already have it. Then with it you can create a macro listing all the variables that match the regex (and other conditions such as measurement level). The regex is case insensitive and anchored to the start of the variable name,
For example,
spssinc select variables macroname = !age
/properties pattern = ".*age".
would select all variables where the name contains age.
Then use that macro in your syntax
save outfile ... /keep = !age/
Hi!
Is it possible to save outfile and /KEEP = variables based on regex or
naming pattern?
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD