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 to convert the recors form vsam file to db2 table tru file aid
What is the difference between goback, stop run and exit program in cobol?
What is the difference between Global and External Variables?
What are literals?
Define static linking and dynamic linking.
What rules are followed by the search verb.
how do you reference the printer file formats from cobol programs
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are declaratives and what are their uses in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the problem of ordered sequential files access?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What are the pertinent COBOL
What is the difference between next sentence and continue in cobol programing language?