Add a new field in PF

380 pts.
Tags:
Physical Files
RPG

Is it possible to add a new field in an existing PF without deleting the records that are present in it?

 

Answer Wiki

Thanks. We'll let you know when a new response is added.

Ravula is correct if hte file was created with DDS.

Just change the DDS and do the CHGPF command.

You will need to recreate the LFs and recompile programs using the files. (PF & LF)

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ravula
    yes we can add feilds to a existing pf .without deleting the records.you can achive it through CHGPF command you can google for more info Thanks ravula
    700 pointsBadges:
    report
  • TomLiotta
    Columns may also be added (or removed or changed) with SQL by running an ALTER TABLE statement with an ADD FIELD clause (for adding). -- Tom
    125,585 pointsBadges:
    report
  • jainamit
    Thanks Amit  
    380 pointsBadges:
    report
  • TomLiotta
    Note that LFs that do not use the new field and have explicit field lists do not need to be recompiled nor do programs that use those LFs. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following