1.find most occurrences of a character.
for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?
Answer Posted / vipul dixit
With the help of %Scan built in function or Scan op-code we
can do this.
we should define a data structure and write like this way:-
DDs s
C Eval Ds = %Scan('d':Source:1).
It will fetch the position of the scanned character,and
after that we will count all the positions as DS elements.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many program bind in one module....
What are the types of identifiers?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
what is an online rpg?
What is the difference between copybooks and subprocedures in as400?
what is the difference between do while and do until?
how does the rpg element work?
what is file information data structure?
what do you mean by an input subfile, what are the keywords required?
how do you use commitment control in rpg?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
How to call one program from another program in RPG? please help me with the code
how can you display specific subfile page on the screen in unequal subfile?
is this a rpg channel?
are there any useful c runtime apis that I can call from rpg iv?