What is the difference between bulitin fuction VERIFY and INDEX?
Answers were Sorted based on User's Feedback
Answer / diana
INDEX(x,y) returns the starting position of the string y within string
x. Returns 0 if y not present in x.
Verify(x,y) returns the first position in x where any character in
y is not in string 1. If all characters in x are contained in y, result is zero.
Is This Answer Correct ? | 1 Yes | 0 No |
index(x,y) : builtin-function to return the starting position of x match y. no y are in x then 0. k = index('abcabcdefg','cd'); k= 6
veryfy(x,y): builtin-function to return the first(leftmost) position of x not any in y. all x are in y then 0. k =veryfy('123456a','0123456789') ; k= 7
Is This Answer Correct ? | 1 Yes | 0 No |
On what systems PL/1 is available?
What is the difference between DEFINED attribute and LIKE atrribute.
Explain REENTRANT?
What is meant by REORDER option in PL/1?
How did PL/I originate?
How can I try out PL/I?
Why do you need Translate?
How we call procedures in PL/1?
What are the different datatypes in PL/1?
What is the use of GET LIST and PUT LIST?
What is the difference between Based and Define?
Pseudo Variables in PL/1?