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
Define static linking and dynamic linking.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are the pertinent COBOL commands?
How to print 10 to 1 if the input have only 10 digit number?
What is the Purpose of Pointer in the string?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
how do you reference the variable unblock file formats from cobol programs
Name some of the examples of COBOl 11?
What are the different types of condition in cobol and write their forms.
How you can characterize tables in cobol?
What rules are followed by the search verb.
How do you reference the fixed block file formats from cobol programs
What is the difference between comp and comp-3?
How to know whether the module is dynamical or statistical?
How you can read the file from bottom?