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


Please Help Members By Posting Answers For Below Questions

What is perform what is varying?

711


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


What are the different types of condition in cobol and write their forms.

660


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1775


) How do u handle errors in BMS macro?

1431






What do you understand by psb and acb?

668


how do you reference the esds vsam file formats from cobol programs

635


What is rmode(24)

684


Write down the divisions of cobol program?

673


What is the problem of ordered sequential files access?

704


How do you define a variable of comp-1 and comp-2?

707


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


What is the utilization of copybook in cobol?

657


Which Search verb is equivalent to PERFORM…VARYING?

691


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

662