Page 1 of 1

UPDATE RDML command

Posted: Wed May 03, 2023 1:36 am
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?

Re: UPDATE RDML command

Posted: Wed May 03, 2023 5:25 am
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."

Re: UPDATE RDML command

Posted: Wed May 03, 2023 6:03 am
by atostaine
Thanks I didn't see the group of records comment.