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 do u handle errors in BMS macro?

2010


how do you reference the fixed unblock file formats from cobol programs

1302


What type of SDLC u followed? Why?

2046


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3317


What are the pertinent COBOL commands?

3230


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2600


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1149


Write the code to count the sum of n natural numbers.

1252


Explain about different table spaces.

1150


What is redefines clause in COBOL?

1344


What is report-item in COBOL?

1194


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

1254


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

3207


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

2282


What are different data types in cobol?

1380