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



Not sure what you're trying achieve by all this I'm afraid John.

You say:

"I need to copy this LF to another file name, clear the PFs, re-populate
the PFs, copy the LF to another name, etc. The name I'm copying to is
different each time."

Why do you need to copy  the logical? Why can't you just copy the
physical(s)? Is it because the logical is the only one with keys and you
need to copy by key?

Can you also clarify why you're clearing the physicals and then repopulating
them please?

Any why do you need to copy the LF to another name?

Sorry, not trying to be obtuse, but rather than launch into what you can and
cannot do with a multi-format logical, I think it's important I/we
understand what the basic objectives are here.

Pete

"John Furniss" <jfurniss@xxxxxxxxxxxxxxxxx>
wrote in message news:3EA93F61.5C1C8840@xxxxxxxxxxxxxxxxxxxx
> List,
>     I searched the archives, but found nothing to help me with this: I
> have an LF (FileLF) over 3 seperate PFs (FilePF1, FilePF2, FilePF3), and
> I need to copy this LF to another file name, clear the PFs, re-populate
> the PFs, copy the LF to another name, etc. The name I'm copying to is
> different each time.
>     It may seem like a strange setup, but this makes up an invoice file
> with three different record lengths (header, detail and total records),
> hence the 3 different PFs with one LF over all three.
>     When I try to copy the file with it's three members and try to
> create the file, get an error saying I cannot copy a multiple member
> file and do a create at the same time. Can I create a join file for all
> three?
>     Ideas?
>     Thanks in advance,
>
> --
> John Furniss
> Applications Programmer
> Allied Machine & Engineering Corp.
> mailto:jfurniss@xxxxxxxxxxxxxxxxx
> Phone (330) 343-4283 ext. 8371
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>
>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.