All,
I've got a datastep in which I extract a number from a string. But... The strings are changing from time to time, but only the first part before the word "Incident" (sometime there appear some numbers, but I don't need those). So what I can do, is make 2 datasteps with the statements:
PATTERN = PRXPARSE("/^Incident/"); --> start from this word
PATTERN = PRXPARSE("/\d\d\d\d\d?/"); --> collect the desired number
But it must be able to combine these statements, I think? Saves a lot of time and space! Thanks in advance!
I've got a datastep in which I extract a number from a string. But... The strings are changing from time to time, but only the first part before the word "Incident" (sometime there appear some numbers, but I don't need those). So what I can do, is make 2 datasteps with the statements:
PATTERN = PRXPARSE("/^Incident/"); --> start from this word
PATTERN = PRXPARSE("/\d\d\d\d\d?/"); --> collect the desired number
But it must be able to combine these statements, I think? Saves a lot of time and space! Thanks in advance!