what is subscript in cobol?give realtime example?
Answer Posted / jagan kumar
it is a number of occrances of array data name. subscript is
coded in working-storage section with separate variable.
example.
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 ? | 9 Yes | 1 No |
Post New Answer View All Answers
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to remove 2 duplicate records and copy only one using job control language?
What is the utilization of copybook in cobol?
Write some characteristics of cobol as means of business language.
Write a program that uses move corresponding.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How do you define a variable of comp-1 and comp-2?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Which mode is used to operate the sequential file?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?