what is subscript in cobol?give realtime example?
Answers were Sorted based on User's Feedback
it is a number of occrances of array data name. subscript is
coded in working-storage section with separate variable.
example.
01 g1.
02 ele pic x(3) occurs 10 times.
01 i pic 99.
procedure division.
perform varying i from 1 by 1 until i > 10
accept ele(i)
display ele(i)
end-perform.
in this is case i is a subscript variable
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / avr
01 g1.
02 ele pic x(3) occurs 10 times.
01 i pic 99.
procedure division.
perform varying i from 1 by 1 until i > 10
accept ele(i)
display ele(i)
end-perform.
in this is case i is a subscript variable
| Is This Answer Correct ? | 3 Yes | 0 No |
What is an explicit scope terminator?
How do we get current date from system with century?
Write down the divisions of cobol program?
What is the different between index and subscript?
What is the difference between Global and External Variables?
how can we fetch 3 records in cobol pgm any coding pls ?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .
What is an index for tables?