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: 356
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 related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Confusion b/w index and subscript Deepak kumar25 Mainframe Interview Questions 7 Thu Aug 31, 2017 6:50 am
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am

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