can u plz expain me how to declare dynamic array? what is
the meaning of depending on clause in dynamic array?
Answer Posted / 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 |
Post New Answer View All Answers
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
what is the use of outrecord?
how can i see junk values in dclgen or in hostvariable of comp ?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What do you understand by psb and acb?
What is the local-storage section?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the compute verb? How is it used?
What is the difference between goback, stop run and exit program in cobol?
Which division and paragraphs are mandatory for a COBOL program?
What is the difference between Call and a Link?
Write down the divisions of cobol program?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?