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
) How do u handle errors in BMS macro?
how do you reference the fixed unblock file formats from cobol programs
What type of SDLC u followed? Why?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What are the pertinent COBOL commands?
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
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Write the code to count the sum of n natural numbers.
Explain about different table spaces.
What is redefines clause in COBOL?
What is report-item in COBOL?
Explain the configuration section of a cobol program with examples of syntax.
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
Can you please let me know the centre name of INS certification in Kolkata.
What are different data types in cobol?