jagan


{ City } hyderabad
< Country > india
* Profession *
User No # 51876
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 9
Users Marked my Answers as Wrong # 1
Questions / { jagan }
Questions Answers Category Views Company eMail




Answers / { jagan }

Question { Wipro, 11462 }

what is subscript in cobol?give realtime example?


Answer

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