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


Please Help Members By Posting Answers For Below Questions

What is the difference between PIC 9.99 and 9v99 in COBOL?

727


What is the compute verb? How is it used?

649


Differentiate between structured cobol programming and object-oriented cobol programming.

658


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2045


What is cobol?

736






how do you reference the variable block file formats from cobol programs

674


What the difference is between continue and next sentence?

651


What are the different rules of SORT operation?

689


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

671


Mention the guidelines to write a structured cobol program?

603


How do u write test cases?

1631


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1772


HOw can I get the negative sign while deduct high value from low value

1779


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1831


What are the different data types in cobol?

781