1.find most occurrences of a character.
for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?
Answer Posted / kar
Use Scan Opcode, and give the result field as array name
instead of a ordinary field.
After the execution of statement, display array values, and
you can find the all occurrences.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
how do I play {insert rpg system here}?
how does the rpg element work?
How many program bind in one module....
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
When it is desirable to describe files Internally?
What is difference between bind by copy and bind by reference?
What is a record lock error?
what is an online rpg?
What is the difference between copybooks and subprocedures in as400?
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.
explain sflclr, sflend, sfldlt, and sflcsrrrn?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
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...?
what was the robotech rpg?
How Chain operation copies the record's data to the input buffer for the program?