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 do I declare a table or array in rpg iv?
What are the types of identifiers?
How to call one program from another program in RPG? please help me with the code
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
what are the key words you must use when using a subfile?
How can we know running job is batch or interactive?
When it is desirable to describe files Internally?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is ment by record level identifier?
How to handle duplicate error handling in RPG?
how can I tell when to replace the array?
what is kids-rpg?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what do you mean by an input subfile, what are the keywords required?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.