1.find most occurrences of a character.
for exm: input:aaabbbbdddddyyy
output: d 5 times
how can i get that?
Answer Posted / deepak
D:a 15a inz('aaabbbbdddddyyy')
D:b 1a
D:c 15a
D:i 2p 0
D:e 2p 0 inz(1)
C: Eval b=%sst(a:e:1)
C: eval c *cat b
C: If b='d'
C: eval replace(d:x)
C: eval i=i+1
C: eval e=e+1
C: i dsply
C: seton lr
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain mdt?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
How many program bind in one module....
What is the purpose of record level identifier?
what is *place and *auto keyword in prtf ?plz explain
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.
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
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 the use of sflnxtchg?
how do I declare a minor?
What is ment by record level identifier?
how do I preserve and clean the array?
how does the rpg element work?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...