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


Can anybody give me example of subscript and index

Answers were Sorted based on User's Feedback



Can anybody give me example of subscript and index..

Answer / billyboyo

In IBM Cobol there are two methods of accessing elements in
a table (array). By subscript, which you explicitly define
in the Data Division or by index, which is implicitly
defined by the compiler.

01 subscript-for-table COMP PIC S9(4).

If you want the 20th item, set the above to 20 and use
field-looked-for (subscript-for-table).

An index is the displacement of an item from the start of a
table. For a subscript, the displacement, which is needed
to find the item, is calculated at run time (from the
subscript and the length of the data item(s)). So an index
is faster, but is generally considered more complex to use.
Some features, like SEARCH ALL, require the use of an INDEX.

Is This Answer Correct ?    4 Yes 1 No

Can anybody give me example of subscript and index..

Answer / arya

number of occurences are called subscript.............


number of dispositional position are called index...........

Is This Answer Correct ?    1 Yes 3 No

Can anybody give me example of subscript and index..

Answer / krishna

Subscript means occuresses, it can declared in WS-section
index means displacement,need not be declared

Is This Answer Correct ?    1 Yes 5 No

Can anybody give me example of subscript and index..

Answer / pandu

Subscript is sequential reading Index is direct reading of
perticular position of record

Is This Answer Correct ?    0 Yes 5 No

Can anybody give me example of subscript and index..

Answer / mahii

index is no of occurance we can find data exactly

subscript is displacement mainli its is used in arrays to
load the data

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More COBOL Interview Questions

why do u need inspect verb?

3 Answers   Patni,


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


In COBOL "BEFORE" advancing is there or not ?

3 Answers  


Can a Search can be done on a table with or without Index?

0 Answers  


What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


Write down the divisions of cobol program?

0 Answers  


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

0 Answers   HSBC, Quest,


What is binary search?

3 Answers  


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

0 Answers  


can any one help -s806

6 Answers  


Categories