ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
   
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  IBM MainFrame AllOther
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
What is the difference between Verify & Index in PL/1?
 Question Submitted By :: Khbnaidu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between Verify & Index in PL/1?
Answer
# 1
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 ?    7 Yes 10 No
Kanishk Kumar
 
  Re: What is the difference between Verify & Index in PL/1?
Answer
# 2
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 ?    16 Yes 1 No
Sneha
 
 
 

 
 
 
Other IBM MainFrame AllOther Interview Questions
 
  Question Asked @ Answers
 
88 level entry is for Accenture6
how to get last 100 records in file-aid? Syntel1
hai this ravi, i completed my mca in 2009, i learnt .net course, i hav been looking for a job on .net, now i would like learn ibm mainframes to get job immediatly,is it correct decision? basically am not sound in programming,what about unix adminstration plz help me to take correct decision,which is the best course now to get the job immediatly  2
How do you find out whether two Data Sets are having exact Data through ISPF Panel? (Say No of Records, Record Data exactly matching including spaces) IBM8
Determine the total no of bytes in the following 01 rec1 . 02 a pic x(6). 02 b redefines a. 03 c occurs 6 times pic 9. 02 d occurs 4 times. 03 e pic x(5). 03 f pic 999. a)38. b)44 c)14 d)32 Accenture3
If a=1 or 2 or 3 NEXT SENTENCE ELSE move a to b. a) if A not = 1 or 2 or 3 move A to B b) if not A = 1 and 2 and 3 move A to B c) if A Not = 1 and 2 and 3 move A to B d) if A NOT = 1 or NOT=2 or NOT =3 move A to B Accenture2
tell me about impact analysis ? Tech-Mahindra1
hi provide info about any real time requirement in health care services mainframe applications bye ramya ACS2
how to change pic of variables declared in copy book inside progrm?  4
If a gdg contains 20 versions .. how to copy those versions ps? IBM2
What is controlled keyword in PL/1? IBM1
How is manual testing done in MF environment? what all are the steps to follow?  2
 
For more IBM MainFrame AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com