IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Interview Question about index


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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: 691
Location: Earth

PostPosted: Wed Sep 19, 2007 10:57 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts Cobol file using index COBOL Programming 2
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
Search our Forums:

Back to Top