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



Bob/Jim,

The CRTxxx commands do not replace files. However, the CHGPF command
*can* change the layout of the file in place--including any logical files
based on the physical file. Quoting from the help text, "If the format
attributes are changed, the data in the existing file is converted to the
new attributes." The conversion is based on field names so a field name
change means lost data.

There are some other considerations which can impact whether the CHGPF
will be successful or not. The best results occur when the CHGPF is
issued interactively--i,.e., on a green-screen--either from a command-line
or as a PDM option. Submitting the CHGPF to batch (as is basically always
the case from WDSC/RDi) will often fail whereas it will succeed if run
interactively. It's best to read the help text and documentation
carefully. But anyway, we routinely do CHGPF commands and any logical
files which share the record format (i.e., use the same record name and do
not specify any fields) are changed also.

Michael Quigley
Computer Services
The Way International
www.TheWay.org

wdsci-l-bounces@xxxxxxxxxxxx wrote on 06/20/2008 01:00:08 PM:

----- Message from "Jim Essinger" <dilbernator@xxxxxxxxx> on Fri, 20
Jun 2008 07:17:15 -0600 -----

To:

"Websphere Development Studio Client for iSeries" <wdsci-l@xxxxxxxxxxxx>

Subject:

Re: [WDSCI-L] compiling files not replacing old file

Bob

The file compile commands will not replace existing files. That is the
same for both physical and logical files. You have to rename or delete
the existing file, then issue the create command you need. I believe
this is to protect your data in physicals and to protect your programs
from level checks for logical file changes. If you have to take
special steps to create the file, you might remember to recompile the
program(s).

hth

Jim



On 6/19/08, Bob P. Roche <BRoche@xxxxxxxxxxxxxxxxx> wrote:
In WDSC 7.0.0.4, I am changing a physical file. I compile it using the
CHGPF option. When I try to recreate the logical files over it, I
can't
find anywhere that will let me tell it to replace the existing file. I
would probably make my files that way if I could, it is all just in my
development library at this point.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.