how can we code index in an array of cobol pgm?
Answer Posted / jenny
It can be done in two ways:
1.Using the INDEXED BY phrase on the OCCURS clause.
2.index can be defined(as a working storage variable) with
USAGE IS INDEX clause.
In either case the index is set, icreased or decreased
using the SET verb in the Procedure Division.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Mention the guidelines to write a structured cobol program?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How do you reference the following file formats from cobol programs?
what is the use of outrecord?
what happens if parmparameter passes zero bytes to the program
How to know whether the module is dynamical or statistical?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What type of SDLC u followed? Why?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Write the code to count the sum of n natural numbers.
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.
Write the code implementing the perform … varying.