Answer Posted / b.rajesh
Number of occurrences of an element is known as subscript.
For storing of data we use the concept of SUBSCRIPT.
EX:-
WORKING-STORAGE SECTION.
01 section
02 marks pic 9(2) occurs 3 times.
77 I pic p(1).
PROCEDURE DIVISION.
move 1 to I.
perform until I > 3
accept marks(I)
add 1 to I
end-perform.
Here we declare the marks(I) : I is called as subscript.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Describe the cobol database components?
What is the utilization of copybook in cobol?
Why would you use find and get rather than to obtain?
What is redefines clause in COBOL?
example for sub strings ? and refernce modifications whit output pls
Can you please let me know the centre name of INS certification in Kolkata.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Why did you choose to work with ibm mainframe cobol programming?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Explain the configuration section of a cobol program with examples of syntax.
i need a small 3d program using inline and outline.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
how do you reference the rrds file formats from cobol programs