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

What is the difference between a subscript and an index in
a table definition?

Answer Posted / srinu

Subscript is the occurance number in the arrary of element.
Fr e.g., an array has only one itme that repeats for 20
times, in order to refer to 10th itme in this array, you
can say ITEM(20). This '20' can be replaced by a WS
variable having value = 20.

Index: It is the displacement from the begining. if you
remember, when we use Index in a loop, then we do not code
Move 2 to WS-INDEX. We have to code. We need to set the
index to zero and then increament.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between external and global variables in COBOL?

1449


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1288


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1109


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

1218


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

1160


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1077


Explain about different table spaces.

1087


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2098


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1145


how do you reference the printer file formats from cobol programs

1207


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

1149


Define static linking and dynamic linking.

1179


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2424


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2264


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2119