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

Answer Posted / s.kumar

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.

Is This Answer Correct ?    24 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the batch job?

582


I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?

654


Can we concatenate fields in physical file? If yes how can we do?

594


Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?

634


What is the interactive job?

583






What is the purpose of the chain and setll and setgt?

599


What is open data path?

589


How to find the list of source physical files in a library?

627


How to update physical file using logical file with example?

594


What is the interactive job? What is the batch job?

594


How to read a pf in reverse(from last record to first) using cl?

609


How to know the particular record in pf with out reading?

596


What is the primary file?

594


How to change the batch job to interactive job?

586


How to index LF by relative record no (RRN)

2841