What is the difference between Verify & Index in PL/1?

Answer Posted / sneha

VERIFY
Indicates the position in string x of the first character thats not in string y. if all r there it returns 0

example: VERIFY(SAM,SAM)returns 0
VERIFY(ABCD,EREE) returns 1

INDEX
Returns the starting position of the string y within x; returns 0 if y is not there in x

example: index(sam,agt) returns 2
index(sam,dog) returns 0

Is This Answer Correct ?    37 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is next sentence and continue unique?

576


What are the mainframe computing pros and cons?

627


Which is the difference between delimited by size and delimited by space?

598


Can you define an alias?

581


How to find all duplicate records?

533






how is the future of tandem mainframe?

2872


how do u start your process after conducting impact analysis ?

1665


how do we describe static call and dynamic call?

588


what u mean by csrloc and rtncsrloc in rpgIV in as/400.Give an eg? to do...give some coding...what is row no and column no ???..if possible...give a no of lines coding....please

3948


How do you write from PL/1 code to JCL?

1826


Can you explain referential integrity?

569


Are scope terminators compulsory? If they are, when?

495


what is the meaning of ssrange and nossrange?

602


Is the order of the when clause significant in an evaluate statement?

591


What is difference between static call and dynamic call?

550