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 |
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."
input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.
What is level 66 used for ?
88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above
how would find total records in files using seqientional
how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please
How do you define a table/array in COBOL?
what are the limitations of Inline Perform?
what are the utilities for load and unload the DB2 tables
Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?
12 Answers T systems, Tech Mahindra,