Describe the difference between subscripting and indexing ?
Answers were Sorted based on User's Feedback
Answer / padmanabha naidu.p
subscripting specifies the occurence or position of the
array and index specifies displacement.
subscripting can be manipulated by artimetic operations.
index can by manipulated by set ,perform and search
operations.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / minhaj
subscript represent the occurence of array.
subscript defined with working storage section.
subscript value can be changed with add,subtract,multiplication.
Index represent first occurence in the array,Index define
along with table entries as part of occus class.
value of index can be changed by the set operator.
| Is This Answer Correct ? | 2 Yes | 0 No |
i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.
What are the two search techniques ?
what happens if we dont close cursor in db2-cobol pgm?
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
What are subroutines ? and how do we pass data to the sub routines?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
What is the difference between copy and include in cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How many bytes S(8) comp field occupy and its maximum value?
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?