Hello
I would appreciate any advice with my problem. I have a set of IDs. The child ID has an "A" suffix at the end of a series of integers but the parent ID has matching integers only. Please could someone advise how I remove the "A"?
I tried tried the following but it removed the last the last character from all ids. I only wish to remove the last character if it is "A":
My data looks like:
Many thanks!
Sara
I would appreciate any advice with my problem. I have a set of IDs. The child ID has an "A" suffix at the end of a series of integers but the parent ID has matching integers only. Please could someone advise how I remove the "A"?
I tried tried the following but it removed the last the last character from all ids. I only wish to remove the last character if it is "A":
HTML Code:
generate str id = substr( Subject , 1, strlen( Subject) - 1)
HTML Code:
Subject
1. C001
2. C001A
3. C002
4. C002A
5. C003
6. C003A
7. C004
8. C004A
9. C005
10. C005A
Many thanks!
Sara

Comment