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 subscript and index?

Answer Posted / robertd903

Subscripts are programmer-defined variables, of numeric type--used to reference an array.
Example:
77 WS-SUB PIC 9(04) COMP.
01 WS-TABLE.
05 WS-TABLE-ENTRY OCCURS 5 Times PIC X(80).

In PROCEDURE DIVISION:
MOVE WS-TABLE-ENTRY(WS-SUB) TO...

Indexes are defined by the programmer, but the PICTURE clause is omitted.
Example:
01 WS-TABLE.
05 WS-TABLE-ENTRY OCCURS 5 TIMES INDEXED BY WS-IDX.
10 FILLER PIC X(80).

In PROCEDURE DIVISION:
MOVE WS-TABLE-ENTRY(WS-IDX) TO...

Is This Answer Correct ?    0 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?

1457


What is difference between static and dynamic call in cobol?

1383


Explain the configuration section of a cobol program with examples of syntax.

1195


what is difference between cobol and cobol/400

22917


What are the different rules to perform a Search?

1094


How to print 10 to 1 if the input have only 10 digit number?

1258


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1141


What is report-item in COBOL?

1151


What are the different types of condition in cobol and write their forms.

1110


What is the use of intialize verb?

1250


) How do u handle errors in BMS macro?

1961


How many sections are there in data division in COBOL?

1130


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1227


What type of SDLC u followed? Why?

1996


What is the difference between perform … with test after and perform … with test before?

1439