How to get only unique records from a file which contains duplicate data using CPYF command ?
Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...
Answer Posted / sandey243
There is an option in CPYF command which says " Error Allowed", making that as *NOMAX will trigger IGNORE option instead of CANCEL in CPYF processing; whenever there is duplicate record encountered.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is the procedure and explain about real time scenario.
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
What is a record lock error?
how does the rpg element work?
what is data area and how it is used in rpg program ?
How to write record if no field or the field are different in physical file in rpgle ?
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?
what is an online rpg?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
What is the purpose of record level identifier?
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.
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
How to call one program from another program in RPG? please help me with the code
what was the robotech rpg?
how do I preserve and clean the array?