UPDATE RDML command

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

UPDATE RDML command

Post by atostaine »

If my table has 1 to many records for an order#, If I issue this update:

#LOC := ' '
#ORDER := 12345
update fields(#LOC) in_file(ORDERS) with_key(#ORDER)

Does it update all of the records or just the first one?
Art Tostaine
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: UPDATE RDML command

Post by Dino »

Hi Art,

It will update all the records for that order number.

https://docs.lansa.com/15/en/lansa015/i ... DATE_C.htm

"Since the UPDATE command has a WITH_KEY or WITH_RRN parameter it is indicating that a specific record (or group of records) should be read and updated."
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: UPDATE RDML command

Post by atostaine »

Thanks I didn't see the group of records comment.
Art Tostaine
Post Reply