1.find most occurrences of a character.
for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ambikapathy velu
CHECK opcode will returns no of repeated char in a string
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / raja
Dstring S 20A Inz ('aaabbbbdddddyyy')
Do 5
String Dsply
Enddo
eval *inlr = '1'
| Is This Answer Correct ? | 0 Yes | 6 No |
if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.
Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?
What is the difference Return and InLr?
what is the rpg system?
1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?
wat is the difference between array and multiple occurence data structure?
can I touch the array during treatments?
i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?
what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?
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
What is the difference between RPG/400 and RPG4
i'm working on progA , in that program i want to see the userids of the users who work on this program?