PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

CPYF not copying all the records

View previous topic View next topic Go down

CPYF not copying all the records

Post  rajkumar400 on Sat Dec 25, 2010 2:30 pm

CPYF FROMFILE(FILE1) TOFILE(FILE2) MBROPT(*REPLACE
) FMTOPT(*MAP *DROP)

I get a message Cancel reply received for message CPF502D. Error writing to member FILE1 in file FILE1. 10 records copied to FILE1

Please note File1 has 30 records and FLD1 defined as 5A and 10A in FILE1 and FILE2 respectively.

Why remaining records ( 20) were not copied?

Thanks in advance!

Raj




rajkumar400

Posts : 59
Join date : 2010-12-25

View user profile

Back to top Go down

Re: CPYF not copying all the records

Post  soundhar on Tue Dec 28, 2010 8:47 pm

Hi,
I hv worked out.For me its working.all records get copied.

Can u provide me more information...

I had a file1 with fld1 5A,file2 with fld1 10A.i had 30 records in file1 and i copied using cpyf wit map....

soundhar

Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum