What are the situations u have used in ur project for
Subcript and Index ?
1.if u use Subscript why not Index,why u choose Subscript
only?
2.if u use Index why not Subscript,what abt Displacement?

Answers were Sorted based on User's Feedback



What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript w..

Answer / app

SUBSCRIPT: No. of occurences of a table is called Subscript.
INDEX: The disposition of the element.
Index can be used in Table data searching and Sorting but
Subscript won't be useful for the above.
Subscript reperesents as a occurence no. it must be
converted to displacement value each time its used so.. it
is less efficent than index.

Is This Answer Correct ?    4 Yes 2 No

What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript w..

Answer / talluri

---subcript is a occurence of arry element
---index is a displacement no of an array element

subcript is declared as a variable in wss but index declared
using index by clause

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is an in-line perform ?

4 Answers   Accenture,


Name the divisions, which are available in a cobol program?

0 Answers  


What is Static and Dynamic linking ?

3 Answers  


Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?

4 Answers  


01 b pic +9(4) How many bytes it will take for storage???

2 Answers  






If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


What will happen if we generate GDG +2 version instead of +1 version?

2 Answers   T systems,


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,


What is SET TO TRUE all about, anyway?

5 Answers  


how to display comp3 variables reply soon ?

4 Answers   Patni,


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


COMP?

2 Answers  


Categories