how can we code index in an array of cobol pgm?
Answer / 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 |
How many divisions we have in Cobol ?
How to resolve the soc4 and soc7 errors?
How to pass return codes from cobol to jcl?
where did you see the information regarding abend codes in jcl?
what happens if parmparameter passes zero bytes to the program
why do u need inspect verb?
Whtz the specialty of 77 level number ?
I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
i WANT ALL ERROR codes IN CICS and DB2
What is Alternate Index ? How is it different from regular index ?
I have a seq file with different fields one field is address with pic x(50) as input in a cobol program. In address there is 'PUNE' at any different positions in the address field ( form 1 t0 50) . My requirement is select the fields with address 'PUNE' by using cobol. Please suggest