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 |
Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?
6 Answers ABC, IBM, Mphasis, Wipro,
If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?
What are all the divisions of a COBOL program?
what is the difference between perform varying and perform until
File status must be checked both while opening and reading the file or only while reading the file?
What are ISOLATION LEVELS? Where do we need to specify them?
What is the compute verb? How is it used?
Difference between ps, esds
What are differences between COBOL and java ? why we are giving more preference to COBOL ?
If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.
Are you comfortable in cobol or jcl?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)