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

01 text-data pic x(100).
move 'xyzdbfrjjg u' to text-data.
how to find the value of last index of text-data?

Answer Posted / billyboyo

Presumably you mean the last character? Redefine the field
as OCCURS 100 PIC X. Start your subscript/index at
the "end" and work backwards to find the first non-blank
character. Careful if the whole field is blank, or if there
are no blanks.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes S(8) comp field occupy and its maximum value?

2146


what is the difference between COBOL2 AND COBOL390?

3062


What is the difference between PIC 9.99 and PIC9v99?

1348


How to remove 2 duplicate records and copy only one using job control language?

1224


how do you reference the esds vsam file formats from cobol programs

1223


How arrays can be defined in COBOL?

1226


What the difference is between continue and next sentence?

1178


What is static and dynamic call in cobol?

1074


HOw can I get the negative sign while deduct high value from low value

2259


What is the difference between next sentence and continue in cobol programing language?

1230


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

2011


What are the different open modes available in cobol?

1196


How do you define a variable of comp-1 and comp-2?

1206


What rules are to be followed while using the corresponding options?

1081


Can you please let me know the centre name of INS certification in Kolkata.

2249