|
CPYF command with COMPRESS(*NO) will work if the file is copied in arrival sequence. As a result, deleted records will be included; however, if the file is copied in keyed sequence, COMPRESS(*NO) will be ignored because no deleted records are contained in the access path. The answer to your dilemma is using CRTDUPOBJ command with the DUPLICATE DATA parameter *YES, like: CRTDUPOBJ OBJ(OLDFILE) FROMLIB(OLDLIBRARY) OBJTYPE(*FILE) TOLIB(NEWLIBRARY) NEWOBJ(NEWFILE) DATA(*YES) Regards! Peter Vidal "Alexander Bardashev" To: <RPG400-L@midrange.com> <alexbar@ru.ru> cc: Sent by: Subject: Re: COPY A FILE owner-rpg400-l@mi drange.com 07/17/01 07:04 AM Please respond to RPG400-L Уou should specify ... COMRESS(*NO) Copy File (CPYF) Type choices, press Enter. Errors allowed . . . . . . . . . ERRLVL 0 Compress out deleted records . . COMPRESS *NO -----ÈñõîäÃîå ñîîáùåÃèå----- Îò: Oscar Barberà <barberao@yahoo.es> Êîìó: RPG400-L@midrange.com <RPG400-L@midrange.com> Äà òà : 17 èþëÿ 2001 ã. 14:53 Òåìà : COPY A FILE Hello, I want to copy a file but without losing the deleted records. How can I do it? Thanks +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.