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                      
Google
   
 
Categories >> Software >> MainFrame >> IBM MainFrame >> IBM MainFrame AllOther
 
 


 

 
 COBOL interview questions  COBOL Interview Questions (849)
 JCL interview questions  JCL Interview Questions (700)
 CICS interview questions  CICS Interview Questions (448)
 DB2 interview questions  DB2 Interview Questions (668)
 IMS interview questions  IMS Interview Questions (79)
 IDMS interview questions  IDMS Interview Questions (6)
 Natural interview questions  Natural Interview Questions (39)
 ADABAS interview questions  ADABAS Interview Questions (7)
 REXX interview questions  REXX Interview Questions (21)
 Assembler interview questions  Assembler Interview Questions (29)
 CLIST interview questions  CLIST Interview Questions (1)
 QMF interview questions  QMF Interview Questions (4)
 MVS interview questions  MVS Interview Questions (11)
 OS390 interview questions  OS390 Interview Questions (9)
 OS 2 interview questions  OS 2 Interview Questions (0)
 VSAM interview questions  VSAM Interview Questions (177)
 QSAM interview questions  QSAM Interview Questions (3)
 Sysplex interview questions  Sysplex Interview Questions (5)
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions (128)
Question
What is the difference between Verify & Index in PL/1?
 Question Submitted By :: IBM-MainFrame-AllOther
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
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 ?    24 Yes 1 No
Sneha
 
Answer
# 2
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 ?    9 Yes 14 No
Kanishk Kumar
 
 
 

 
 
 
Other IBM MainFrame AllOther Interview Questions
 
  Question Asked @ Answers
 
hi provide info about any real time requirement in health care services mainframe applications bye ramya ACS 2
what is CCID in endevor, what it is its role? CTS 5
how do u create gdgs n vsam by using file-aid ?   2
What is the difference between Verify & Index in PL/1? IBM 2
Why banking use IBM framework? IBM 1
what is the difference between the jes2 and jes3   2
How will u give input data to cobol program apart from PARM & Instream data?   6
how can u view a vsam file using file-aid IBM 5
Hi All I've got an appointment for my visa interview. I'm confused seeing all the postings I'm currently working in IBM Bangalore, i've got just 3+ years of realtime experience in this field. I've completed my Bachelore of Computer Applications and then Master of Information Systems....and with good percentages... I've seen many posting who's visa got rejected even for 4+years of IT experience VO's asking for 6+ years of exp. I'm afraid...is my exp and background sufficient to get throug the interview and get visa stamped. I'ld be more happy if you can help me in this reg. waiting for reply Smitha   2
What is controlled keyword in PL/1? IBM 1
can alternate index use in ESDS since it does not contain primary index? if yes can you explain? Temenos 2
how do u debug without using xpeditor ? TCS 1
 
For more IBM MainFrame AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com