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

what happens if parmparameter passes zero bytes to the program

1859


Which is not true about evaluate statement

2076


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

958


What are the different rules for performing sort operation?

937


For rewrite, why is it mandatory that file needs to be opened?

824






Mention the guidelines to write a structured cobol program?

804


What is the difference between next sentence and continue in cobol programing language?

939


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5401


How to know whether the module is dynamical or statistical?

858


What are the different rules to perform a Search?

800


Explain about different table spaces.

844


Explain how you can characterize tables in cobol?

804


Can we redefine the field of x(200) to less than 200?

1079


What is the local-storage section?

872


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2158