Hi,
untested: try something like
COMPUTE mystring = REPLACE(mystring,'UN','3750').
or
COMPUTE mystring_numeric = NUMBER(REPLACE(mystring,'UN','3750'), F8.0).
Mario Giesel
Munich, Germany
Am Montag, 8. Februar 2021, 21:49:03 MEZ hat Melissa Hunfalvay <
[hidden email]> Folgendes geschrieben:
Hi, I am trying to replace a string “UN” with a number 3750. How can I do that programmatically? Thank you
===================== 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