Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times h..

Answer / hummn

It can easily be done by using the BIF %ELEM.

Is This Answer Correct ?    0 Yes 2 No

1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times h..

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

1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times h..

Answer / ambikapathy velu

CHECK opcode will returns no of repeated char in a string

Is This Answer Correct ?    0 Yes 4 No

1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times h..

Answer / 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

More RPG400 Interview Questions

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.

10 Answers   Four soft,


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.....?

2 Answers  


What is the difference Return and InLr?

3 Answers  


what is the rpg system?

0 Answers   IBM,


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

1 Answers   HCL,


wat is the difference between array and multiple occurence data structure?

4 Answers   Four soft,


can I touch the array during treatments?

0 Answers   IBM,


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?

6 Answers   Mind Tree,


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?

2 Answers   IBM, Patni,


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

0 Answers  


What is the difference between RPG/400 and RPG4

1 Answers   HCL,


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


Categories