Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is the meaning, the advantages and which are the types of evaluate statement?

1066


How many bytes will a s9(8) comp field occupy ?

1132


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

998


pls send the docs of any telecommunication mainframe project

2170


10. Why mainframe testing is so important? Give any three advantages of Mainframe Testing?

3568


What are some uses of the evaluate statement?

954


Explain identify whether a call statement is a static or dynamic call?

1015


suppose if you added a coloumn to db2 table, How would it be the Impact analysis?

2065


What is z os in mainframe?

995


How is next sentence and continue different?

987


Why is free space left in ksds dataset?

1142


How are composite and multiple indexes different?

1015


Can you define a gdg?

999


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 !!

1949


Name and explain the type of locks?

959