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
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Write some characteristics of cobol as means of business language.
Whats the difference between search & search ALL?
What is report-item in COBOL?
Write down the divisions of cobol program?
What is the difference between PIC 9.99 and 9v99 in COBOL?
how to convert the recors form vsam file to db2 table tru file aid
What is the difference between PIC 9.99 and PIC9v99?
What are the different data types in cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are the cobol coding sheets?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How do you define a variable of comp-1 and comp-2?
What is a report item?
how can i see junk values in dclgen or in hostvariable of comp ?