What is the difference between Verify & Index in PL/1?
Answer Posted / kanishk kumar
INDEX::
Returns the starting position of the string y within string
x; returns 0 if y not present in x.
>>--INDEX--(--x--,--y--)------------------------------------
------------><
Verify::
Returns the first position in string 1 where any element in
string 2 is not in string 1.
If all characters in x are
contained in y, result is zero.
>>--VERIFY--(--x--,--y--)-----------------------------------
------------><
Example: IF VERIFY(NAME,ALPHABET) THEN...;
DCL MAINSTR CHAR(6) INIT ('ANUK ');
DCL SUBSTRG CHAR(2) INIT ('NA');
RTN = VERIFY(MAINSTR, SUBSTRG);
Default search starts from 1st position.
RTN=3
| Is This Answer Correct ? | 15 Yes | 21 No |
Post New Answer View All Answers
what is the meaning, the advantages and which are the types of evaluate statement?
How many bytes will a s9(8) comp field occupy ?
Is the order of the when clause significant in an evaluate statement?
pls send the docs of any telecommunication mainframe project
10. Why mainframe testing is so important? Give any three advantages of Mainframe Testing?
What are some uses of the evaluate statement?
Explain identify whether a call statement is a static or dynamic call?
suppose if you added a coloumn to db2 table, How would it be the Impact analysis?
What is z os in mainframe?
How is next sentence and continue different?
Why is free space left in ksds dataset?
How are composite and multiple indexes different?
Can you define a gdg?
Hello, I have 3 years of exp as a mainframes tester in a leading IT company, now am looking to change my company. Could you please let me know, what are the interview questions/topics i should prepare. Your suggestions are truly valuable for me :) Thanks !!
Name and explain the type of locks?