What is a subscript ?

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


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

696


What is the difference between PIC 9.99 and PIC9v99?

777


Can we change the password using ALTER? anyone tried and changed?

1544


what is the difference between COBOL2 AND COBOL390?

2453


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...)

1923






A table has two indexes defined. Which one will be used by the SEARCH?

757


Write a program to explain size error.

669


how do you reference the rrds file formats from cobol programs

794


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

706


What is a SSRANGE and NOSSRANGE?

818


What is static and dynamic call in cobol?

592


Name some of the examples of COBOl 11?

2678


What are the different open modes available in cobol?

713


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?

894


What are the access modes of START statement?

718