If i initialize the 01 level variable in array, will it
initialize all the array elements (occurs)?

Answer Posted / snehatechm

All ryt.Answer is no.array elements will not be initialised
automatically.
you can initialise the table with INITIALIZE verb.
INITIALIZE XXX-YYY
this will initialize your alphanumeric with space and
numeric with '0'.
apart from this by moving also u can initialise.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of intialize verb?

751


Which is not true about evaluate statement

1595


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


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.

2060


What are the different open modes available in cobol?

722






State the various causes of s0c1, s0c5 and s0c7.

665


In COBOL programming, what is PERFORM? What is VARYING?

672


What is report-item in COBOL?

711


What is redefines clause in COBOL?

851


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

748


A table has two indexes defined. Which one will be used by the SEARCH?

759


how do you reference the ksds vsam file formats from cobol programs

666


What is a scope terminator give example?

659


How arrays can be defined in COBOL?

665


Write a program to enter and display the names of students in a class using the occurs clause.

654