|
That's the kind of thing I did with my CRTDUPFSET (CReaTe DUPlicate
File SET) command.
The first parameter is a qualified file name (which has to be a
physical file).
The second parameter is the target library and defaults to QTEMP.
The third parameter indicates what should be done if the physical file
already exists in the target library (defaults to *TOLIB which means
to delete-and-replace if the target library is QTEMP or issue an
escape message if the target library is not QTEMP).
The fourth parameter indicates whether the data should be copied
(defaults to *NO).
The fifth and sixth parameters provide the capability to select or
omit specific logical files from being duplicated (defaults to select
*ALL logicals and omit *NONE).
An escape message is issued if any of the logical files over the
specified physical file are in a different library.
Copying the data (if requested) is done using CPYF, not as part of the
underlying CRTDUPOBJ.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.