ALLInterview.com :: Home Page KalAajKal.com
 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  >>  COBOL
 
 


 

 
 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
I have 2 dimensional array with having 100 elements. So how 
to find the 11th item in an array?
 Question Submitted By :: Shriya
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
Answer
# 1
give subscript as 11 ,like if we have temp as table name, 
then
display "temperature : " temp(11)

but if table is two dimentional then
__________________________
|     1     |    2       |
|_________ _|____________|
|     |     |     |      |
|0-25 |26-50|51-75|76-100|
|_ele_|_ele |_ele |_ele  |

so to fetch 11 the record we have to write temp(1,11)
 
Is This Answer Correct ?    4 Yes 0 No
Dipali Jaju
 
  Re: I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
Answer
# 2
index
   0 1 2 3 4 5 6 7 8 9
0  |
1-this is 11 th item in array
2
3
4
5
6
7
8
9 
that is arrymame(1,0)=11th item
 
Is This Answer Correct ?    6 Yes 1 No
Sreejith
 
 
 
  Re: I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
Answer
# 3
i think above answers r worng.
working-storage section.
01 WS-ARR.                                                  
02 WS-A  OCCURS 10 TIMES.                                   
03 WS-D  OCCURS 10 TIMES PIC XX.                            
01 I PIC 9(2).                                           
01 J PIC 9(2).                                           
PROCEDURE DIVISION.                                      
MAIN-SECTION.                                            
MAIN-PARA.                                               
     PERFORM PARA1 VARYING I FROM 1 BY 1 UNTIL I > 10    
     AFTER J FROM 1 BY 1 UNTIL J > 10.                   
                        
     DISPLAY WS-D(1,2).                                     
     STOP RUN.                                           
PARA1.                                                   
     ACCEPT WS-D(I , J).
 
Is This Answer Correct ?    1 Yes 1 No
Neelam Saini
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
Can we use goto statement in inline_perform ? IBM2
What are different file OPEN modes available in COBOL? Sun-Life2
What should be the sorting order for SEARCH ALL?  3
What are ISOLATION LEVELS? Where do we need to specify them?  2
How do you submit JCL via a Cobol program?  3
What is IMPACT analysis? IBM1
Explain call by context by comparing it to other calls.  1
what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C TCS2
What are VS COBOL 11 special features?  1
What is an explicit scope terminator?  1
what is the basic concept of mainframe? what knowledge is needed for learn this mainframe? CSE2
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers. Syntel1
What divisions, sections and paragraphs are mandatory for a COBOL program?  4
What will happen if we generate GDG (+2) version without generating (+1) version? T-systems2
What is the linkage section?  2
What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames. TCS4
I have a sequential file. How do I access a record in this sequential file randomly in my program ? Xansa4
Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help. EDS5
In the JCL, how do you define the files referred to in a subroutine ?  1
what is Pic 9v99 Indicates?  1
 
For more COBOL 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 © 2007  ALLInterview.com.  All Rights Reserved.

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