IBM DB400 Question:
Download Questions PDF

How to add a field to a PF and compile it without loss of data?

Answer:

First Add the fields whatever you want

then use CHGPF command

Physical file . . . . . . . . . > MyPf
Library . . . . . . . . . . . MyLib
System . . . . . . . . . . . . . *LCL
Source file . . . . . . . . . . MYSourceFile
Library . . . . . . . . . . . MyLib

Update the Physical file.No need to compile again.

Download IBM DB400 Interview Questions And Answers PDF

Previous QuestionNext Question
How to find the list of source physical files in a library?
Is there any way to get a list?
Is it possible to create a logical file whose Physical file is not in same library?