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 index and subscript?
How do you code Cobol to access a parameter that has been defined in JCL?
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
What are the different ways to run a COBOL DB2 program using JCL?
write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...
How does IDMS communicate with CICS?
What is SDSF?
What is the different between index and subscript?
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 are the isolation levels and where we use it in the db2 program
What are the differences bitween cobol and cobol-2?