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

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

2199


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.

2571


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.

1000


what is *place and *auto keyword in prtf ?plz explain

2948


what are the key words you must use when using a subfile?

909


what is the use of sflnxtchg?

1045


how do I preserve and clean the array?

876


What is ment by record level identifier?

880


what is an online rpg?

1004


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1693


how do I declare a minor?

925


How can we know running job is batch or interactive?

890


how can you display specific subfile page on the screen in unequal subfile?

926


How many program bind in one module....

2387


How to handle duplicate error handling in RPG?

1999