1.find most occurrences of a character.
for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?
Answer Posted / shravan
dds s 15a
inz('aaabbbbdddddyyy')
dds1 s 10a
C 5 subst ds:8 ds1
C dsply ds1
c seton
lr
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
what is an online rpg?
Explain mdt?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
how do you use commitment control in rpg?
how does the rpg element work?
are there any useful c runtime apis that I can call from rpg iv?
what is data area and how it is used in rpg program ?
How to call one program from another program in RPG? please help me with the code
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
what is program status data structure?
what is the necessary keyword needed to scroll subfile records?
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
How to write record if no field or the field are different in physical file in rpgle ?
What is the difference between copybooks and subprocedures in as400?