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?

Answers were Sorted based on User's Feedback



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

Answer / 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 ?    38 Yes 13 No

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

Answer / 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

More IBM MainFrame AllOther Interview Questions

what are the common errors that occured while programming in AS/400?

0 Answers  


What is the difference between the mro & isc?

0 Answers  


what is u r recent task in insurence project?..plz tell how to tell this.

0 Answers   Syntel,


Can you define an alias?

0 Answers  


What are the mainframe computing pros and cons?

0 Answers  


What is database descriptor?

0 Answers  


GO TO stmt which of the following is not true A) GO TO stmt is not essential in the sense that it is possible to write programs without using GO TO B) The target of the GO TO stmt being a procedure name avoiding GO TO result in a program with no procedure name C) Indiscriminate use of GO TO stmt can make the control structure program substantially complex D) Too many GO TO stmts make a program difficult to understand

2 Answers   Accenture, IBM,


What is the mainframe computer?

0 Answers  


HOW to change the coloumns in XREF?

0 Answers  


If DB2 query returns in null value, how do you work with it in PL/1?

0 Answers   IBM,


What is the difference between hidam and hdam databases?

0 Answers  


Why are you looking for a change?

0 Answers  


Categories