View previous topic :: View next topic
|
Author |
Message |
Lavanya_Dhushetty Warnings : 2 New User
Joined: 30 Aug 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
|