Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us