View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Hi!
Is there a builtin function in PL/1 to locate the last non-blank character of a string?
Will verify help in this case? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
it depends if the string has embedded blanks or not! |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
If I have a string like
will I be able to locate 'K' or the position of 'K' using PL/1 builtin? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You can use a combination of functions to achieve your goal, but I don't remember any single function that will do what you want. |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
oh! that will do.
What would be those built-in functions?
Is it possible atleast to locate 'K' in
using single built-in function |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Hi,
Quote: |
What would be those built-in functions? |
INDEX or VERIFY or SEARCH ?
Please refer Enterprise PL/I - Language Reference manual for more details. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Enterprise PL/I, don't know when this variant of VERIFY was introduced:
VAR = VERIFYR(String, ' '); |
|
Back to top |
|
|
|