what is subscript in cobol?give realtime example?
Answer Posted / 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 |
Post New Answer View All Answers
What is the problem of ordered sequential files access?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
How do you reference the following file formats from cobol programs?
What is the use of intialize verb?
What is report-item in COBOL?
What do you understand by psb and acb?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is the usage of comp fields in cobol?
What is difference between static and dynamic call in cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
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
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?