What is a subscript ?

Answers were Sorted based on User's Feedback



What is a subscript ?..

Answer / santosh khot

Subcript is a working storage variable which gives the
occurance value of variable. Its main use is to access the
array elements.

Is This Answer Correct ?    4 Yes 1 No

What is a subscript ?..

Answer / 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

What is a subscript ?..

Answer / ananta

Subcript : it is occurences of same type of records.

Ex-1.

01 arry.

02 a pic x(5) occures 5 times.
03 i pic 9.

ex-2.

01 rec-1.
02 rec1 pic x(5).
02 rec2 pic x(5).
02 rec3 pic x(5).
02 rec4 pic x(5).
02 rec5 pic x(5).


these 2 example shows that ex-2 can be writen in the form
of subcript .it make fast proccessing by usin g less I/o
sources.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

where do u use low-value and high value in cobol

3 Answers   CGI,


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


What is an explicit scope terminator?

3 Answers  






What do you do to resolve SOC-7 error?

2 Answers   Sun Life, Wipro,


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


What are different data types in cobol?

0 Answers  


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


How arrays can be defined in COBOL?

0 Answers  


Can a Search can be done on a table with or without Index?

0 Answers  


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,


Categories