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
What is the problem of ordered sequential files access?
What is report-item in COBOL?
Explain how to differentiate call by context by comparing it to other calls?
What is the utilization of copybook in cobol?
Why occurs cannot be used in 01 level in COBOL?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Can a Search can be done on a table with or without Index?
Define static linking and dynamic linking.
how do you reference the esds vsam file formats from cobol programs
Which is not true about evaluate statement
What are literals?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how do you reference the printer file formats from cobol programs
Give some examples of command terminators?