1)how to do date validation in rpg?
2)how to delete dUPLICATE RECORDS?

Answer Posted / chandu

We can delete duplicate records by using this:
factor1 opcode factor2 result eq
key setll pf
reade pf 50
dow *in50=*off
delete rec1
reade pf 50
enddo

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is file identifier where we can use?

631


what is the difference between do while and do until?

686


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

1950


how do I play {insert rpg system here}?

572


How would display prime numbers using CL program?

5666






How can we override a file during runtime in rpg?

673


What are the types of identifiers?

556


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1550


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

600


what is kids-rpg?

656


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

750


How to call one program from another program in RPG? please help me with the code

1245


What is ment by record level identifier?

642


how do I preserve and clean the array?

659


do you use message subfiles? What are the necessary keywords required coding a message subfile?

675