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 |
1..Write an sql query to find the employee name who is having 2 phone numebr? 2.Write an sql query to the the second highest salary of the employee?
steps for debugging two rpg programs????
3 members in a databasefile .how to read records from all the members?????????
How to declare the more than one file in cl/400.
what is *place and *auto keyword in prtf ?plz explain
we are sending data of physical file to screen design and it is showing no record why?
Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?
Can we have a Physical file without any member ? Please let me know
Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
what is the procedure and explain about real time scenario.
0 Answers Adhoc Technologies, Hanuman Automation, HSBC, IBM,
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.