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
Which Search verb is equivalent to PERFORM…VARYING?
What are the access modes of START statement?
What are declaratives and what are their uses in cobol?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is a scope terminator give example?
How can you get the ksds file records into your cobol program?
What rules are followed by the search verb.
What is link edit in cobol?
What is the local-storage section?
Discuss about changing dataset name in proc.
how do you reference the esds vsam file formats from cobol programs
Describe the cobol database components?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between comp and comp-3?
In which area will you utilize 88 level items in cobol?