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

thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2084


what was the robotech rpg?

872


what is the necessary keyword needed to scroll subfile records?

918


can you debug ile rpg program using isdb?

942


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

947


are there any useful c runtime apis that I can call from rpg iv?

912


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2271


How can we know running job is batch or interactive?

866


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?

838


How to handle duplicate error handling in RPG?

1971


how do I declare a minor?

902


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...

1517


how do you use commitment control in rpg?

992


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

1480


What is the difference between iter and do?

938