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 (851)
 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 (80)
 IDMS interview questions  IDMS Interview Questions (6)
 Natural interview questions  Natural Interview Questions (41)
 ADABAS interview questions  ADABAS Interview Questions (8)
 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 ?    25 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 ?    10 Yes 14 No
Kanishk Kumar
 
 
 

 
 
 
Other IBM MainFrame AllOther Interview Questions
 
  Question Asked @ Answers
 
tell me about impact analysis ? Tech-Mahindra 1
Total no of bytes in the following 01 rec-1 02 first-group 03 a1 pic x(4). 03 a2 pic 99. 02 second-group redefines first-group. 03 A3 pic999. 03 A4 pic 999. 02 third-group. 03 A5 occurs 5 times pic 99. A)22 B)16 C)12 D)10 Accenture 3
what is copybooks ? structure of copybook and fillers in copybook ? purpose of using copybook ? Tech-Mahindra 2
WHAT IS 3.12,3.14 ? DIFFERENCES?   2
.what is required for establishing connectivity between MQ and cics on z/OS? a. MQ-cics gateway b.INITQ as QLocal c. CICS-MQAdapter d.INITPARAM of SIT e. INITQ as QRemote Wipro 1
how do u create gdgs n vsam by using file-aid ?   2
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 Accenture 3
What is the use of a COPYBOOK in Fileaid ? Steria 4
what are the present versions of all mainframe modules?can any body let me know pls   1
What is controlled keyword in PL/1? IBM 1
which one of the following cannot cause more than one execution of paragraph that may be nam in statement. A) simple perform B) perform with time C) perform until D) perform varying Accenture 3
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
 
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