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 print 10 to 1 if the input have only 10 digit number?
Which division and paragraphs are mandatory for a COBOL program?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How you can read the file from bottom?
What rules are to be followed while using the corresponding options?
Define cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
how to refer the data field?
What is amode(31)
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
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
what are decleratives in cobol?
What rules are followed by the search verb.
What are the different data types in cobol?
How are the next sentence and continue different from each other?