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

How do you differentiate between cobol and cobol-ii?

1129


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17796


What is a SSRANGE and NOSSRANGE?

1415


how can i see junk values in dclgen or in hostvariable of comp ?

2933


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1953


Difference between array and sub-script ?

1603


What is static and dynamic call in cobol?

1002


How to print 10 to 1 if the input have only 10 digit number?

1216


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

1256


what is the use of outrecord?

2153


) How do u handle errors in BMS macro

1957


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

1126


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1195


Which Search verb is equivalent to PERFORM…VARYING?

999


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

1080