how will u retreive value from a table.write it with syntex.
01 ws-table
05 ws-table1 occurs 10 times.
05 ws-table2 occurs 10 times.
the above is 2 dimensional array..how will u retrieve 1st
element of an array
Answer Posted / veenaibm
Multidimentional array is as follows:
01 TABLE-REC-1.
05 ROWS OCCURS 1 TO 10 TIMES.
10 COLUMNS OCCURS 1 TO 10 TIMES.
20 CELL PIC X(1).
Now if we want to access the value of the variable CELL,
we can use
Perform x from 1 by 1 until x>10
Perform y from 1 by 1 until y>10
cell(x,y).
In the question, it is not a 2 dimentional array.
It is 2 single dimentional array which can be accessed
independently.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is rmode(any) ?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
) How do u handle errors in BMS macro
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Can you please let me know the centre name of INS certification in Kolkata.
what happens if parmparameter passes zero bytes to the program
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the usage of comp fields in cobol?
how do you reference the esds vsam file formats from cobol programs
How are the next sentence and continue different from each other?