Hi friends,
The format of a variable is like this:
54361P(P)~U$
I want to delete (P)~U$ in this variable. i.e., I want “54361P” to be kept.
However, when I use code_new=compress(code,”(P)~U$”), the returned is “54361”.
I wonder, how can I get the outcome like “54361P”?
I think, the problem is that the compress function only compress specific characteristics. What I want to delete is the exact combination of characteristics, i.e., “”(P)~U$”.
Would you help me?
Thank you a lot!