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
What is the difference between comp and comp-3?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Which is not true about evaluate statement
What is the difference between next sentence and continue in cobol programing language?
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.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between comp and comp-3 usage?
Describe the cobol database components?
What are the different types of condition in cobol and write their forms.
Explain the configuration section of a cobol program with examples of syntax.
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
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?