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 many bytes S(8) comp field occupy and its maximum value?
what is the difference between COBOL2 AND COBOL390?
What is the difference between PIC 9.99 and PIC9v99?
How to remove 2 duplicate records and copy only one using job control language?
how do you reference the esds vsam file formats from cobol programs
How arrays can be defined in COBOL?
What the difference is between continue and next sentence?
What is static and dynamic call in cobol?
HOw can I get the negative sign while deduct high value from low value
What is the difference between next sentence and continue in cobol programing language?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What are the different open modes available in cobol?
How do you define a variable of comp-1 and comp-2?
What rules are to be followed while using the corresponding options?
Can you please let me know the centre name of INS certification in Kolkata.