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



We are on V7R2 and when we execute a CPYF on an SQL table to create a new table we get an SQL table:

CPYF FROMFILE(OMSMODF/MLEBLSFL) TOFILE(PJTLIB/TEST) MBROPT(*ADD) CRTFILE( *YES)
Physical file TEST created in library PJTLIB.
Member MLEBLSFL added to file TEST in PJTLIB.
37 records copied from member MLEBLSFL.

CHGPF FILE(PJTLIB/TEST) MAXMBRS(*NOMAX)
Maximum-member value not valid for file TEST.
File TEST in PJTLIB not changed.

Can you show me how you executed your CPYF?


Paul
On 2018-03-01 13:38, Dan wrote:

We're on v7r1. I just tested CPYF of an SQL table to a new file. I am
able to change the new file via CHGPF MAXMBRS(*NOMAX). I ran additional
CPYF commands to create new members. The original SQL table and the CPYF
created file both have the same record format level ID. (I did try to
change the original SQL table to MAXMBRS(*NOMAX), but that failed with
CPD3213.)

Per the suggestion of adding a column to use to "filter" as a "member":
YMMV, but that would be an absolute nightmare in our shop. The work
involved to refactor everything to get that to work, just for the sake of
creating a backup? If you truly are limited to one member in a
CPYF-created file, I think I'd come up with a scheme to your "backup"
library that just backs up every file with a single member. The file name
would be Annnnnnnnn (through 999,999,999 iterations), Bnnnnnnnnn, etc. The
object description would be 'FILENAMExx LIBRARYxxx <timestamp of backup>'.
Maybe add a "master" file that identifies all of the backup files in the
library, including the attributes you feel are important to keep track of.

- Dan

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.