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 is amode(24), amode(31), rmode(24) and rmode(any)?

705


What is comp-1 and comp-2?

765


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

984


Explain how to differentiate call by context by comparing it to other calls?

689


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

712






what are decleratives in cobol?

1829


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

700


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8658


What do you understand by psb and acb?

667


What is the difference between comp and comp-3?

704


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714


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

999


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825


What rules are followed by the search verb.

638