IBM DB400 Question:

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

Tweet Share WhatsApp

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 PDF Read All 26 IBM DB400 Questions
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?