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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1278


Mention the guidelines to write a structured cobol program?

1044


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1185


How do you reference the following file formats from cobol programs?

1136


what is the use of outrecord?

2164


what happens if parmparameter passes zero bytes to the program

2092


How to know whether the module is dynamical or statistical?

1094


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7763


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

2334


What type of SDLC u followed? Why?

1970


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3219


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2336


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

1165


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2402


Write the code implementing the perform … varying.

1025