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 are the various section in data division and briefly explain them.
What is the difference between PIC 9.99 and PIC9v99?
Can we change the password using ALTER? anyone tried and changed?
what is the difference between COBOL2 AND COBOL390?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
A table has two indexes defined. Which one will be used by the SEARCH?
Write a program to explain size error.
how do you reference the rrds file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is a SSRANGE and NOSSRANGE?
What is static and dynamic call in cobol?
Name some of the examples of COBOl 11?
What are the different open modes available in cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What are the access modes of START statement?