1.find most occurrences of a character.
for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?
Answer Posted / raja
Dstring S 20A Inz ('aaabbbbdddddyyy')
Do 5
String Dsply
Enddo
eval *inlr = '1'
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
How to handle duplicate error handling in RPG?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
what is file information data structure?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
How would display prime numbers using CL program?
what is the necessary keyword needed to scroll subfile records?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
can you debug ile rpg program using isdb?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
what is the use of sflnxtchg?
how do I declare a table or array in rpg iv?
What is the difference between copybooks and subprocedures in as400?
What is ment by record level identifier?