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 |
What will happen if we generate GDG (+2) version without generating (+1) version?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is different between variable length and fixed length?
how do u list the abended jobs?
can any one help -s806
What do you understand by psb and acb?
How many maximum number of procedures can we write in one COBOL program?
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
Can we call a CICS program from a batch program or viceversa?If so, how?
What is Static and Dynamic linking ?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.