01 text-data pic x(100).
move 'xyzdbfrjjg u' to text-data.
how to find the value of last index of text-data?
Answers were Sorted based on User's Feedback
Answer / 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 |
cana ny one post a code for that ,
thanks in advance
krishna
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kumar
By using UNSTRING Verb we can do
UNSTRING text-data DELIMITED BY ' ' INTO ws-f1 (o/p varible)
| Is This Answer Correct ? | 0 Yes | 1 No |
What are different data types in cobol?
What does the INITIALIZE verb do?
Should I use STOP RUN in the sub program??why?
how many bytes does s9(7)COMP-3 field occupies?
how can we get current dat and time thru cobol pgm
. How do we cast a variable in COBOL
What is rmode(any) ?
where do we use dyanamic call ? and where do we use static call pls give any example pls ?
i want to store 20 digits . h will u do it in cobol ?
What compiler option would you use for dynamic linking?
)what is retrieve?
How you can characterize tables in cobol?