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
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 |
Answer / ambikapathy velu
CHECK opcode will returns no of repeated char in a string
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / raja
Dstring S 20A Inz ('aaabbbbdddddyyy')
Do 5
String Dsply
Enddo
eval *inlr = '1'
| Is This Answer Correct ? | 0 Yes | 6 No |
what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
how can an indexed file be used as arrival sequence in RPG?
1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??
Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?
How to update physical file in rpgle without using display file?
Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any
Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?
what do you mean by an input subfile, what are the keywords required?
Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
What is difference between bind by copy and bind by reference?
1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?