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

Answer Posted / sharath

Assuming we have to initialize the array variables with
zeroes.
MOVE ALL '0' to the '01' group variable will initialize the
whole array.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats the difference between search & search ALL?

5860


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

620


What are the different data types in cobol?

1040


Write a cobol program making use of the redefine clause.

921


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

915


Write a program that uses move corresponding.

868


What type of SDLC u followed? Why?

1720


What the difference is between continue and next sentence?

868


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

834


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1156


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2874


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

962


how do you reference the rrds file formats from cobol programs

1135


how to move the records from file to array table. give with code example

2424


How do you differentiate between cobol and cobol-ii?

851