Update join logical file

35 pts.
Tags:
AS/400
iSeries V6R1
Logical Files
I have seen one topic here before which saying that join logical file can be updated and it has been many years. But I have tried to update a join logical file either using DFU or STRSQL.Neither succeed. Could someone help on this? Thanks a a lot.

Software/Hardware used:
AS400 V6R1

Answer Wiki

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

You should be updating the physical files.
Phil

====================================================

As of V5R4, the topic you need to review is <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/sqlp/rbafyinsteadofsql.htm”>INSTEAD OF SQL triggers</a>. Quote from the topic: “An INSTEAD OF trigger allows a view, which is not inherently insertable, updatable, or deletable, to be inserted into, updated, or deleted from.”

Naturally, if the trigger function has not yet been defined, you won’t be able to perform the UPDATEs against the VIEW with DFU, SQL nor anything else.

Tom

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
  • philpl1jb
    Right Tom, With the Instead of SQL trigger, it will appear from the application side, DFU, or SQL that the Join file is being updated but in reality the trigger logic that you create will be updating the underlying physical files. Phil
    50,860 pointsBadges:
    report
  • sothonod
    What's the use for Join Files if you can't have more than one format in a physical file using dfu?  I thought that the join files within a relative file will have taking care of that problem for quick and dirty reliable conveniante data entry using DFU.
    45 pointsBadges:
    report
  • sothonod
    It would be nice with one DFU program be able to add/edit data into either several format from the same physical file or to be able with one dfu program to add/edit data to more than one physical files.
    45 pointsBadges:
    report
  • azohawk
    A join can create a one to many relationship, or even a many to many.  Since it is possible that only one of the many may be what is needed to be updated and not the all of the many. (I hope that made sense). Consequently, the restriction to not be able to update join logicals.  To my knowledge, it has always been this way and IBM has no plans to change it.
    620 pointsBadges:
    report
  • sothonod
    Make sense but it still would be nice due to the confusing too many fields to fit in one screen additional format will enhance DFU without the need of DBU.  Many programmers all over the world still use DFU If the 36 could do that why not the AS400?  
    45 pointsBadges:
    report
  • philpl1jb

    I wouldn't expect any updates on DFU. 

    As a programmer, I am most likely to view data using interactive SQL.

    50,860 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