What is the difference between subscript and index?
Subscripts are programmer-defined variables, of numeric type--used to reference an array.
Example:
77 WS-SUB PIC 9(04) COMP.
01 WS-TABLE.
05 WS-TABLE-ENTRY OCCURS 5 Times PIC X(80).
In PROCEDURE DIVISION:
MOVE WS-TABLE-ENTRY(WS-SUB) TO...
Indexes are defined by the programmer, but the PICTURE clause is omitted.
Example:
01 WS-TABLE.
05 WS-TABLE-ENTRY OCCURS 5 TIMES INDEXED BY WS-IDX.
10 FILLER PIC X(80).
In PROCEDURE DIVISION:
MOVE WS-TABLE-ENTRY(WS-IDX) TO...
| Is This Answer Correct ? | 0 Yes | 0 No |
Should I use STOP RUN in the sub program??why?
What COBOL construct is the COBOL II EVALUATE meant to replace?
What is file status 39 ?
) How do you access the migrate the data from production region to development region
What is different between variable length and fixed length?
what is srange and nosrange pls reply to ths question ?
What are the various section in data division and briefly explain them.
What are the different forms of EVALUATE statement?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
what will happen if pass values more than 100 using PARM parameter?
Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?