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 do you mean by linkage section?

551


What is the difference between inrec and outrec?

635


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

1822


When are scope terminators compulsory?

585


suppose oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset?

540






Can any one tell me that how we go for the compare,unit testing after changing requirement as per client request. this is very helpful for me when u give suitable (coading) exmple.

1706


If anyone has latest IBM Certification Dumps can you pls forwards it to me

2498


can you change the attribute in mapset? if so how?

1705


how to handle -911 (deadlock) error in a db2 program so that the program will never abend?

576


what is difference between file-aid tool and file-aid utility?

866


How many types of evaluate statements are available?

551


When do you get -811 sqlcode and how to resolve it?

512


What will be the result if on size error phrase is declared?

500


What is the facility that allows mainframes to be partitioned into lapars?

600


What is basic difference between directory and pds in ibm mainframe?

668