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

Why occurs cannot be used in 01 level in COBOL?

1174


Write the code to count the sum of n natural numbers.

1224


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9119


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9913


Give some examples of command terminators?

1272


What are various search techniques in cobol? Explain.

1080


What are declaratives and what are their uses in cobol?

1214


What is a SSRANGE and NOSSRANGE?

1480


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1102


what is the difference between COBOL2 AND COBOL390?

3073


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1305


What are the different data types in cobol?

1461


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2485


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1544


Name the sections present in data division.

1260