What is a subscript ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
What is ASKTIME, SUSPEND
If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.
Differentiate between structured cobol programming and object-oriented cobol programming.
What are 77 levels used for?
I got user abend U4038 while compiling my runjcl.. can anyone help me?
What COBOL construct is the COBOL II EVALUATE meant to replace?
What does the IS NUMERIC clause establish ?
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
can we use the two 01 level in file discription ?
What are the two search techniques ?