Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Interview Question about index

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Wed Sep 19, 2007 10:07 am    Post subject: Interview Question about index
Reply with quote

Consider the following table example using index:

01 WS – NAMES PIC X (10) OCCURS 5 TIMES INDEXED BY 11.

What is the exact section where 11 should be defined explicitly?

Answers:
a. LINKAGE SECTION
b. Does not need to be defined explicitly
c. SPECIAL – NAMES SECTION
d. DATA DIVISION
e. INDEX SECTION

I dont have any idea on index.Can U tell me the answer????????
Back to top
View user's profile Send private message

ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Sep 19, 2007 10:20 am    Post subject:
Reply with quote

Answer: B
Indiex need not be declared explicitly anywhere in the program. Please refer any fundemental COBOL book for these type of queries.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Wed Sep 19, 2007 10:57 am    Post subject:
Reply with quote

Code:
01 WS – NAMES PIC X (10) OCCURS 5 TIMES INDEXED BY 11.


Lavanya,
Could you please let us know from where you are getting these questions because many of them contain syntactical or some error. (remember question about examine?)

Now here
1. OCCURS CAN NOT BE DECLARED FOR A 01 LEVEL ITEM.
2. INDEXED BY 11 , 11 can not be name of an index variable.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Question about dataset sequence numbe... harisukumaran JCL & VSAM 23 Tue May 29, 2018 9:31 am
No new posts Incorrect output after build alternat... sandeep kumar302 JCL & VSAM 10 Wed May 02, 2018 2:35 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 12 Tue Apr 17, 2018 10:42 pm
No new posts A couple of Interview Questions on Co... viplavmodi36 Mainframe Interview Questions 5 Fri Feb 23, 2018 6:21 pm
No new posts JES2 EXIT 6 QUESTION Randy Horowitz All Other Mainframe Topics 30 Tue Feb 06, 2018 5:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us