Posted by
Eric Black on
Feb 21, 2012; 3:18pm
URL: http://spssx-discussion.165.s1.nabble.com/Search-Replace-in-SPSS-20-tp5502036p5502516.html
Sure:
Search+Replacement works perfectly if I don't change the default settings.
However, at times I only need to change things in certain areas of my syntax
file, for example I have the following syntax (highly simplified).
Fre v1a v1b v1c.
Cro v1a by v1b.
I now want to have the following syntax:
Fre v2a v2b v2c.
Cro v1a by v1b.
The way to do would be to highlight the first row, hit Ctrol+H, say Replace
v1 with v2 *in selected area* and then replace all.
SPSS then tells me that it can't find search string and automatically
unselects the highlighted area (an annoying feature if I need to make more
than one change in the highlighted area).
If I then click on Replace All (no area highlighted, it will replace v1 with
v2 *in the complete syntax file*. So it CAN find the string but somehow
highlighting it doesn't work for SPSS
Matt
=====================
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