Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / nag(igate)

hi rakesh and sneha

we can initialize the array at group level.

01 xxx-yyy VALUE "ABCDEFGH"
03 XX-YYY-ARRAY OCCURS 2 TIMES.
05 XX-YYY-MEM1 PIC X(2).
05 XX-YYY-MEM2 PIC X(2).
the initialize value should depend on the number of times
the, occurs clause repeat.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the configuration section of a cobol program with examples of syntax.

1142


State the various causes of s0c1, s0c5 and s0c7.

1037


What rules are to be followed while using the corresponding options?

1030


What is report-item in COBOL?

1124


What is the difference between external and global variables in COBOL?

1395


What are the various section in data division and briefly explain them.

1134


Explain what you understand by passing by value.

1116


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

1294


What are 77 levels used for?

1076


Name the sections present in data division.

1190


How do define dynamic array in cobol.

1103


Write down the divisions of cobol program?

1185


Can we change the password using ALTER? anyone tried and changed?

1973


Why would you use find and get rather than to obtain?

1152


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2497