can u plz expain me how to declare dynamic array? what is
the meaning of depending on clause in dynamic array?
Answers were Sorted based on User's Feedback
Answer / amarnadh reddy
When a table of variable size is required, the occurs
depending clause may be used.
01 A1 PIC 99.
01 REC-1.
05 P1 PIC XX.
05 P2 PIC 99 OCCURS 1 TO 90 TIMES DEPENDING ON A1.
Here depending on the value of the data name A1 the size of
P2 Will be decided. It can be anything between 1 and 90.
| Is This Answer Correct ? | 31 Yes | 4 No |
Answer / roger riek
You can indeed create dynamic arrays in MVS Cobol. You need
to use the heap facility in the language environment.
There is a discussion about how to do this at
http://home.centurytel.net/rjriek/
| Is This Answer Correct ? | 0 Yes | 1 No |
dynaic array is notink but a two dimension array.
01 studet.
02 stunam occurs 3 to 4 times depanding on n.
03 stuname pic x(15).
03 stumrk occurs 2 times.
04 stumark pic 9(3).
this is dynamic array.now runtime will pass the input.because
using depanding clause.
depanding clause pass the value runtime.
| Is This Answer Correct ? | 3 Yes | 12 No |
Write a program to concert an Indexed file into Sequential file?
If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value
What is static and dynamic call in cobol?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
i have variable record in the 5th, i want to sort from 5th filed ? how ?
how do you reference the printer file formats from cobol programs
Can we access the a[0] in the array ?
what r the types of perform statement
What is the difference between static call & Dynamic call?
waht is inspect verb? where it can be in real time?
Differentiate COBOL and COBOL-II?
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.