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 is file status 92?
how to access the file from prodution from changeman tool and to submit a file to production
Write the syntax of a two dimensional array?
How to read a record from bottom of a file which is indexed by 'A'.
What are the access modes of START statement?
Minimum how many Number of Paragraphs are there in ID- Divison?
What is the difference between goback, stop run and exit program in cobol?
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
what is the purpose of linkage section?
can anyone explain me the concept of COMP-4 PLEASE??
what is rediffine clause?in what situation it can use?give me real time example?
01 x pic s9(8) comp. How will the following value be internally allocated '18787'