1.find most occurrences of a character.

for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?


Answer Posted / ambikapathy velu

CHECK opcode will returns no of repeated char in a string

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

734


what do you mean by an input subfile, what are the keywords required?

1029


How to handle duplicate error handling in RPG?

1974


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1387


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

2086


How to write record if no field or the field are different in physical file in rpgle ?

699


what are the key words you must use when using a subfile?

896


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

1031


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1709


what is an online rpg?

982


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1091


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3560


what is file information data structure?

1768


what is *place and *auto keyword in prtf ?plz explain

2928


How can we know running job is batch or interactive?

866