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...


how can we code index in an array of cobol pgm?



how can we code index in an array of cobol pgm?..

Answer / jenny

It can be done in two ways:

1.Using the INDEXED BY phrase on the OCCURS clause.

2.index can be defined(as a working storage variable) with
USAGE IS INDEX clause.

In either case the index is set, icreased or decreased
using the SET verb in the Procedure Division.

Is This Answer Correct ?    15 Yes 2 No

Post New Answer

More COBOL Interview Questions

without performing any operations on a file how can i know whether it contains data or not

2 Answers  


01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2

9 Answers   HSBC,


Difference between file status codes 02 and 22.... since both are for duplicate key detection.

1 Answers  


how to refer the data field?

0 Answers  


What is an explicit scope terminator?

3 Answers  


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


What is rmode(24)

0 Answers  


What does the INITIALIZE verb do?

1 Answers  


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


how will you define vsam file in select clause?

3 Answers   Patni,


can we use go to statement inline-perform?

7 Answers   IBM,


9(2).99 how many bytes take? Why . consider as a byte?

2 Answers  


Categories