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



At 13:57 09/04/2002, Jeff Crosby wrote:
I have used the CHGPF command with LVLCHK(*NO) and a source member to
add fields to the end of the record format on-the-fly.  Then after
recompiling all the programs that touch the file, I change it back to
LVLCHK(*YES).  But I've never done it on a file with LFs built over it.

Now I want to do this to a PF that has logicals over it and I'm
apprehensive.  The CHGLF command does not have SRCFILE and SRCMBR parms.
 Will the following work:

1) CHGLF LVLCHK(*NO) on all logicals.
2) Change the PF source member (and LF ones if applicable).
3) CHGPF with LVLCHK(*NO) and SRCFILE/SRCMBR.
4) CRTLF from source member with LVLCHK(*NO) for all logicals.
5) Compile all programs touching the PF or any LF.
6) CHGPF LVLCHK(*YES)
7) CHGLF LVLCHK(*YES) on all logicals.
Unless you need to make changes to the logical records themselves, there's
no need to recompile logicals.  The CHGPF command will take care of
dropping and recreating them. It will even take care of constraints and
triggers for you.

Pete Hall
pbhall@ameritech.net
http://www.ameritech.net/users/pbhall/index.html



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.