When changing the DDS for a physical file with many logicals, there's one simple way to implement the changes without going through the hassle of removing logicals, copying the file, recompiling the file empty, and mapping the data back in. Use CHGPF! By using this command, you can do all steps at one time - and you don't have to remove and rebuild logicals. You just specify your data file, and tell it the source file, source library, and source member name of the DDS you want to use. The file is rebuilt right before your eyes - no intervention required. Of course, you will still need to recompile programs using the file and logicals - unless you specify LEVELCHECK *NO.
Code
CHGPF
Physical file . . . . > DATAFILE
Library . . . . . . > DATALIBR
System . . . . . . . . *LCL
Source file . . . . . > QDDSSRC
Library . . . . . . > MYLIB
Source member . . . . ddsname
==================================
MORE INFORMATION ON THIS TOPIC
==================================
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.