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 are the mainframe computing pros and cons?

1052


List the type of locks?

879


what is the meaning of ssrange and nossrange?

945


Write the difference between hidam and hdam databases?

952


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

1081


What is the term “where” for?

951


What is the difference between the mro & isc?

957


Explain paging concept in memory?

946


What are the different types of table spaces?

943


What is defragmentation and what is its advantage?

1160


What is the difference between inrec and outrec?

1066


What is the difference between hidam and hdam databases?

912


What do you mean by monitor block?

1802


If an array is multi-dimensional dynamic array how do you deal with it & provide me some examples?

2381


What is Framework & How it work?

2054