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

1) can we display the index?

Answer Posted / jswan

You can't directly display the Index. But you can create a normal numeric field in your working storage and set that to the Index.

Example:

01 WS-TABLE.
05 WS-CUSTOMER PIC X(25) OCCURS 10 INDEXED BY INDEX1.

01 WS-NUMERICS.
05 WS-INDEX-COUNT PIC 9(02) VALUE 0.

SET WS-INDEX-COUNT TO INDEX1.
DISPLAY WS-INDEX-COUNT.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to move the records from file to array table. give with code example

2729


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

1218


Explain how you can characterize tables in cobol?

1115


) how do u code after getting data?

2210


how can i see junk values in dclgen or in hostvariable of comp ?

3049


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

2444


What are various search techniques in cobol? Explain.

1112


Are you comfortable in cobol or jcl?

1092


How do define dynamic array in cobol.

1185


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1167


What are the pertinent COBOL

2624


What are the different rules of SORT operation?

1202


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1210


What rules are followed by the search verb.

1196


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

1299