what is subscript in cobol?give realtime example?
Answer Posted / jagan kumar
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 |
Post New Answer View All Answers
What is perform what is varying?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are the different types of condition in cobol and write their forms.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
) How do u handle errors in BMS macro?
What do you understand by psb and acb?
how do you reference the esds vsam file formats from cobol programs
What is rmode(24)
Write down the divisions of cobol program?
What is the problem of ordered sequential files access?
How do you define a variable of comp-1 and comp-2?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the utilization of copybook in cobol?
Which Search verb is equivalent to PERFORM…VARYING?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?