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
) How do u handle errors in BMS macro?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how do you reference the fixed unblock file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Name the sections present in data division.
What is the difference between comp and comp-3?
What is the Purpose of Pointer in the string?
How do u write test cases?
What is the difference between PIC 9.99 and PIC9v99?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
what are decleratives in cobol?
What is the compute verb? How is it used?
Discuss about changing dataset name in proc.