What is the difference between index and subscript?
Answer Posted / vamsi krishna g
subscript is occurence type like arrays so if u want to
dispaly a value of it means it will search for it from
begining
indexed:
if u want to dispaly a value of an vairable it will
directly diplaces to that value and display the value
so from this we can say
subscript is an occurance type and indexed is displacement
type
if any wrong means please update me
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is the utilization of copybook in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the local-storage section?
Which division and paragraphs are mandatory for a COBOL program?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is a report item?
how do you reference the variable block file formats from cobol programs
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is length is cobol?
How to print 10 to 1 if the input have only 10 digit number?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How do u write test cases?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?