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
What is a report item?
What do you understand by psb and acb?
How do u write test cases?
Can you please let me know the centre name of INS certification in Kolkata.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Explain how you can characterize tables in cobol?
Which is not true about evaluate statement
What are the different types of condition in cobol and write their forms.
Write the code to count the sum of n natural numbers.
i want a program using by if, evaluate , string, unstring, perform, occurs?
how to refer the data field?
How do you differentiate between cobol and cobol-ii?
State the various causes of s0c1, s0c5 and s0c7.
how do you reference the fixed unblock file formats from cobol programs
Write a cobol program making use of the redefine clause.