what is subscript in cobol?give realtime example?
Answer Posted / avr
01 g1.
02 ele pic x(3) occurs 10 times.
01 i pic 99.
procedure division.
perform varying i from 1 by 1 until i > 10
accept ele(i)
display ele(i)
end-perform.
in this is case i is a subscript variable
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
For rewrite, why is it mandatory that file needs to be opened?
How do u write test cases?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Which mode is used to operate the sequential file?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the Purpose of Pointer in the string?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the use of intialize verb?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
State the various causes of s0c1, s0c5 and s0c7.
What is the difference between comp and comp-3 usage?
what happens if parmparameter passes zero bytes to the program
Discuss about changing dataset name in proc.