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

How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?

1 Answers   CGI,


What are the differences bitween cobol and cobol-2?

1 Answers   Wipro,


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


how to access vsam files in cobol and how to differentiate that this is ESDS file

1 Answers   EDS,


What is the meaning of 'TALLING' verb in cobol?

5 Answers  






How To move a value to an array using move verb?

3 Answers   IBM,


what is s013u000 for?

1 Answers   Hewitt,


what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

2 Answers   IBM, Wipro,


What is the usage of comp fields in cobol?

0 Answers  


how to access the file from prodution from changeman tool and to submit a file to production

1 Answers   IBM,


What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?

2 Answers   T systems,


what is scope terminator

2 Answers   IBM,


Categories