I believe you are looking at the last word in the line sequence. Please
have a look at the following piece of code and this would do the job for
you. Even if the line has just one string, you would get that as output.
_____________________________________
/*rexx*/
str4 = " one two three four "
str3 = " one two three "
str = str4
say word(str, (words(str)) )
str = str3
say word(str, (words(str)) )
_____________________________________
When executed, the output would look like:
four
three
Thanks,
Anand
----- Original Message -----
From: "Ed Benoit" <Ibm...@AOL.COM>
To: <TSO-...@VM.MARIST.EDU>
Sent: Friday, October 30, 2009 8:30 PM
Subject: [TSO-REXX] REXX Parse question
> Hello All,
> I am attempting to parse a line in REXX. Some times line has three =
words
> in the line and some times four words. Is there a keyword I can use
to
> determine how many words in a line before I parse the line.
> What REXX manual should I review?
>
> Ed.
>
> ----------------------------------------------------------------------
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX