How to define a array dynamically.....

Answer Posted / samay simant

Use the Occurs Depending on clause.

01 College-table
05 Student-table occurs 10 to 20 times depending on
NUM_Stud.

Here the size of array is dependent on Number of students.
Thus this is dynamically created.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats the difference between search & search ALL?

5243


explain sorting techniques in cobol program?

685


What type of SDLC u followed? Why?

1514


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2091


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

736






What is redefines clause in COBOL?

841


How to remove 2 duplicate records and copy only one using job control language?

731


What kind of error is trapped by on size error option?

735


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2095


What are the different data types in cobol?

784


What is report-item in COBOL?

702


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

679


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

671


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

885


What is the difference between comp and comp-3 usage?

669