Not too shy to talk
Joined: 2010/6/17 15:04 Last Login
: 11/7 21:18
From Waterbury, Connecticut (USA)
Group:
Registered Users
|
@Chris Quote: This always returns 0:
rx "say lastpos('abcdabcd', 'b')"
No matter what values I feed in, LASTPOS() always returns 0 which means "not found".
I can't get it to work under OS3.1 either. Has it ever worked? Is there an alternative function? while i don't know if there is a difference in how it's implemented in AREXX, using ANSI REXX on z/OS, the format is different: LASTPOS(needle,haystack) LASTPOS(needle,haystack,offset)so if it's anything like ANSI REXX, then you'd want your code to be: rx "say lastpos('b','abcdabcd')"see if that works. -- eliyahu
|