Compiling RPG Programs when changing something in DDS?

2380 pts.
Tags:
AS/400
Display File
RPG Program
Hi! Why its needed to compile all the related RPG Programs when we change something in one record in a display file. For example I'm having a display file and within it there are many subfiles and single record formats, window screens. If I change edit something in one record format and compiled it, all the related RPG's are giving error. Is should be compiled one by one? Any other way to do this? Surey

Answer Wiki

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

Discuss This Question: 3  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
  • philpl1jb

    Every record of your display file has a record format level .. you can see that with the DSPFD command.

    When the program is compiled it records that files record format levels. You can see that with the DSPPGMREF command.

    When the program is run it checks each record level format. they must match the level stored in the program from the compile.

     

    49,850 pointsBadges:
    report
  • aceofdelts
    This error happens because of a screen I/O file that is implicitly created linking the RPG with the DDS object. If you change the screen but your change doesn't affect I/O with the program (e.g., a text-only change) then you won't get the error.
    1,890 pointsBadges:
    report
  • CharlieBrowne

    It sounds like your issue is  having one DSPF that is shared across RPG programs.

    If that case use the INCLUDE keyword on the F spec in each of the RPG programs that have that DSPF. You specific only the record formats that that program will use. SO if you change a format that is not used ion a particular program, you will not need to recompile that program.

    41,380 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