How to find the last occurence of a character in a string



IBM's Command List programming language & Restructured Extended Executor

How to find the last occurence of a character in a string

Postby suganyagi » Tue Jul 08, 2008 6:34 pm

Hi,

How can I find the last occurence of a particular character (its position) in a string. Is there any built-in function to achieve this?
suganyagi
 
Posts: 3
Joined: Mon May 26, 2008 12:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to find the last occurence of a character in a string

 

Re: How to find the last occurence of a character in a string

Postby MrSpock » Tue Jul 08, 2008 8:43 pm

Did you try LASTPOS?
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post