Hi, I've been having troubles with the Rexx PARSE instruction.
When I want the first part of a string I get nothing.
EG.
BLAH="1.2.3"
PARSE VAR BLAH WITH num1'.'num2'.'num3
SAY NUM1 NUM2 NUM3
I get:
2 3The only way I've been able to work around this, is to put something in front of the variable.
Like so:
BLAH="1.2.3"
BLAH_T='a'BLAH
PARSE VAR BLAH_T WITH 'a'num1'.'num2'.'num3
SAY NUM1 NUM2 NUM3
But this is inelegant, and it messes with the data. It's possible that depending on what data is coming in, it may not work.
Surely there is some way around this problem?
Thanks in advance if anybody can help me!