× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: COPY A FILE
  • From: Oscar Barberà <barberao@xxxxxxxx>
  • Date: Tue, 17 Jul 2001 16:35:25 +0200

Because I want to make tests but I don't want to do it in the real
environment.

----- Original Message -----
From: alan shore <SHOREA@dime.com>
To: <RPG400-L@midrange.com>
Sent: Tuesday, July 17, 2001 3:44 PM
Subject: Re: COPY A FILE


> Many people have replied with information to produce the desired results.
However I'm curious as to the reason why a file needs to be copied,
including the deleted records. No ulterior motive, just my curiosity.
>
> >>> <Peter_Vidal@pall.com> 07/17/01 09:24AM >>>
>
> 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
> +---
>
> +---
> | 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
> +---


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.