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



On Mon, 30 Mar 2015 13:27:29 -0700, Ken Sims <mdrg8066@xxxxxxxxxxx>
wrote:

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.

I forgot that CRTDUPFSET also has a parameter for whether or not *JOB
overrides should be created. (Needed in our environment when creating
into QTEMP because our main database library is also the current
library.)

And I also have a DLTFTSET command to delete a file set.

Here's what the command prompt screens look like (best viewed with a
fixed-width font):

Create Duplicate File Set (CRTDUPFSET)

Type choices, press Enter.

File . . . . . . . . . . . . . . __________ Name
Library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
To library . . . . . . . . . . . QTEMP_____ Name, *CURLIB
Delete existing file set . . . . *TOLIB *TOLIB, *YES, *NO
Create file overrides . . . . . *JOB______ *JOB, *NO
Duplicate data . . . . . . . . . *NO_ *NO, *YES
Create logical files . . . . . . *ALL______ Name, *ALL, *NONE
+ for more values __________
Omit logical files . . . . . . . *NONE_____ Name, *NONE
+ for more values __________

Delete File Set (DLTFSET)

Type choices, press Enter.

File . . . . . . . . . . . . . . __________ Name
Library . . . . . . . . . . . QTEMP_____ Name, *CURLIB
Delete file overrides . . . . . *JOB______ *JOB, *NO

Ken
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.

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.