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 is the difference between comp and comp-3?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between next sentence and continue in cobol programing language?
What guidelines should be followed to write a structured cobol prgm?
What is the problem of ordered sequential files access?
What is the difference between Global and External Variables?
In which area will you utilize 88 level items in cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What is a report item?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
how do you reference the printer file formats from cobol programs
What the difference is between continue and next sentence?
How to know whether the module is dynamical or statistical?