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
Name the divisions, which are available in a cobol program?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
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
What is the LINKAGE SECTION used in COBOL?
State the various causes of s0c1, s0c5 and s0c7.
Which mode is used to operate the sequential file?
What is rmode(any) ?
What are the various section in data division and briefly explain them.
What is the utilization of copybook in cobol?
What is a SSRANGE and NOSSRANGE?
How do get the result of your program directly on your pc?
How to remove 2 duplicate records and copy only one using job control language?
What are the different open modes available in cobol?
A table has two indexes defined. Which one will be used by the SEARCH?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?