Answer Posted / b.rajesh
Number of occurrences of an element is known as subscript.
For storing of data we use the concept of SUBSCRIPT.
EX:-
WORKING-STORAGE SECTION.
01 section
02 marks pic 9(2) occurs 3 times.
77 I pic p(1).
PROCEDURE DIVISION.
move 1 to I.
perform until I > 3
accept marks(I)
add 1 to I
end-perform.
Here we declare the marks(I) : I is called as subscript.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how to refer the data field?
Have you used comp and comp-3 in your project? And how?
Mention the guidelines to write a structured cobol program?
What is comp-1 and comp-2?
Whats the difference between search & search ALL?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are literals?
How are the next sentence and continue different from each other?
What is the LINKAGE SECTION used in COBOL?
In which area will you utilize 88 level items in cobol?
State the various causes of s0c1, s0c5 and s0c7.
What are the pertinent COBOL commands?
How you can characterize tables in cobol?
how do you reference the esds vsam file formats from cobol programs
What are the rules of the move verb?