File in external datastructure

70 pts.
Tags:
AS/400
AS/400 database
External database
RPG ILE
Will level check occur on program when you changed the file mentioned in external data structure?

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: 6  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
  • TomLiotta
    I wouldn't expect a level check unless it's a file defined in the F-specs, but I wouldn't be surprised if other errors showed up. Why not just test it? Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    The only time the external file is used is during the compile of the program. As Tom said, external level checks will not occur during run time. Since the program contains the old data structure, it will not contrain any of the changes made after the compile. If this isn't a problem the program will work. Phil
    49,610 pointsBadges:
    report
  • Kvrs80
    Hi Tom/Philip, Thanks for the clarification. I'm under assumption that the data structure will be expanded, even at program run time. So even if the external file changed and we didnt compile the program, program will be used the old data structure of the file...right...?
    70 pointsBadges:
    report
  • philpl1jb
    Exactly, during compiing the data structure of the external file is mapped. That structure will be used within the program without change until the program is recompiled. As Tom said, the level check will only occur with F-specs. I think a good practice is to recompile programs that use files in F-specs or external data structures when the file structure is changed. In the shops I've worked in, we always recompile programs with external data structures when the file changes and we make any other changes that arfe required at the same time. When we use external data structures it's often directly or indirectly tied into the file and structural changes to the file should be recognized by the programs. Phil
    49,610 pointsBadges:
    report
  • TomLiotta
    I’m under assumption that the data structure will be expanded, even at program run time. No, it won't. So even if the external file changed and we didnt compile the program, program will be used the old data structure of the file…right…? The DS will still have the old, unchanged file fields -- right. I tested it to be sure, but I only tested on V5R4. I don't see any reason it would be different on later releases. Tom
    125,585 pointsBadges:
    report
  • Kvrs80
    Thanks again, guys for clarifying.......)
    70 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