Sorry,  I just realized this should probably be better posted to rgp-l. However, Even a Cobol example would help too. So, cross-posted.

-----

On 7/19/2022 9:30 AM, Alan Cassidy wrote:
Good morning folks,

I am updating a file. I have an externally defined data structure defined with EXTNAME().

I can't find a specific reference anywhere, but is there a syntax to use that data structure to update the row in the table, like so, maybe?

UPDATE  TABLE1  SET TABLERECD = :TABLE-DS WHERE KEY1 = VALUE1 AND KEY2 = VALUE2?

I have just seven fields to list out, and I'm doing that, but I just wondered if there was a way to do the above (without having to input with an update lock)?

Reason I'm asking is for the future, if I could set it up that way, it would make it easier to add changes to other columns, and maybe other thins.

--Alan Cassidy


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.