What is the difference between a subscript and an index in
a table definition?
Answer Posted / mftech
Subscript is the occurance number in the arrary of element.
Fr e.g., an array has only one itme that repeats for 20
times, in order to refer to 10th itme in this array, you
can say ITEM(20). This '20' can be replaced by a WS
variable having value = 20.
Index: It is the displacement from the begining. if you
remember, when we use Index in a loop, then we do not code
Move 2 to WS-INDEX. We have to code. We need to set the
index to zero and then increament.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How do u write test cases?
Mention the guidelines to write a structured cobol program?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are the different rules to perform a Search?
What is the difference between Global and External Variables?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
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
What is a SSRANGE and NOSSRANGE?
Discuss about changing dataset name in proc.
How many sections are there in data division in COBOL?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
how do you reference the variable unblock file formats from cobol programs
What type of SDLC u followed? Why?
What is the difference between goback, stop run and exit program in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?