What is the different between index and subscript?
Answers were Sorted based on User's Feedback
Answer / ash
Subscript - refers to the array occurance
Index - refers to the byte position/displacement of the
occurance from the start of the array
| Is This Answer Correct ? | 4 Yes | 0 No |
INDEX is Displacement position of array data name.
Subscript is No. of occurenceof array data name.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / raja
Subscript refers to the array occurrence while index is the
displacement (in no of bytes) from the beginning of the
array. An index can only be modified using PERFORM, SEARCH
& SET. Need to have index for a table in order to use
SEARCH, SEARCH ALL.
| Is This Answer Correct ? | 4 Yes | 0 No |
What is the difference between Perform para and perform asaection in cobol?
Which division and paragraphs are mandatory for a COBOL program?
What are the different data types in cobol?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
what will happen if pass values more than 100 using PARM parameter?
Can a Search can be done on a table with or without Index?
after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)
How do you differentiate between cobol and cobol-ii?
how do you reference the variable block file formats from cobol programs
What is the maximum length of a field you can define using COMP-3 in COBOL?
01 A pic 9(100) find record length of it
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.