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 |
Explain complete concept of table handling in COBOL with an example?
how we separate the cobol cics statements from cobol&cics programming?
How many sections are there in data division in COBOL?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..
What do you understand by passing by reference and passing by content?
How to recover a deleted source physical file from library?
how to convert the recors form vsam file to db2 table tru file aid
how would find total records in files using seqientional
How many types of sorts are there in cobol?
Can we use redefine clause in occurs clause?
What are the pertinent COBOL commands?