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 CONTINUE & NEXT SENTENCE ?
In EBCDIC, how would the number 1234 be stored?
what is the use of comp2 ? where can we use it with example ?
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
What is 66 level number and where it is used in real time by software developers?
2 Answers ITC Indian Tobacco Company, TCS,
What is the difference between SEARCH and SEARCH ALL?
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
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.
how to code in cobol while using variable block file?
What is static and dynamic call in cobol?
How to display the index.(displacement from an array)