265 pts.
 db2/400
I need add a field in existing Physical file without imacting any thing file? i know CHGPF command but i am not sure about which parameter needs to be update... Please advice...

Software/Hardware used:
ASKED: March 6, 2009  1:15 PM
UPDATED: March 6, 2009  2:27 PM

Answer Wiki:
There's no way you don't impact something 1. Add field to DDS - generally fields are added to the end of files, this my avoid a few errors. and 1.1 CHFPF pointing at the lib/QDDSSRC/Member or 1.2. Add the field using SQL ALTER Table command 2. The Format Level Identifier will be changed and this means that every RPG program that includes the file in an 'F' spec with External format will need to be recompiled. Also CL programs and cobol programs 3. Every other RPG program that uses the file as a datastructure should also be compiled 4. Any SQL's that use the file may need to be altered - if they do an insert without a value list the new field needs to be added - if they do a select * the field needs to be added to the receiving datastructure I think the CHFPF adds the field to the logicals, unless the logicals contain a field list -- items 3-5 apply to the logicals Every query/400 that uses the file needs to be opened for change so it will pick up the new format level. Good Luck Phil
Last Wiki Answer Submitted:  March 6, 2009  1:50 pm  by  philpl1jb   44,190 pts.
All Answer Wiki Contributors:  philpl1jb   44,190 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _