|
View previous topic :: View next topic
|
| Author |
Message |
RTE200
New User

Joined: 06 Nov 2024 Posts: 5 Location: Israel
|
|
|
|
Howdy, everyone.
I want to hit a range of records, not based on any existing key.
| Code: |
@ADADCL111, FILE-NAME DESCRIPTOR-KEY-NOT-HELPING-OR-MISSING,
FIELD-SOURCE
FIELD-TARGET
,,SUFFIX88 . |
A condition for update is when FIELD-TARGET not equals to FIELD-SOURCE.
(FIELD-TARGET gets value from FIELD-SOURCE if the condition true)
I did relatively solid amount of reading at the official S-AG website, but I still don't get how can I implement such a query.
P.S.
Currently I'm iterating sequentially, using READISN, and checking the values via plain IF statement. |
|
| Back to top |
|
 |
RTE200
New User

Joined: 06 Nov 2024 Posts: 5 Location: Israel
|
|
|
|
Ok, maybe someone will find it useful:
- If you need full-file-scan, it is better to use READ PHYSICAL (L2).
- Know your prod-data: make sure you're not drilling too deep into current record, when you can filter-out the record early (inverse search). Maybe you only need to update 0.1 % of your records.
- Make sure you are not leaving transaction open for too long (lets say you did 1 update, and a bunch of reads after that, eventually leading to trx-timeout-abend).
- Keep separate ADADCL for updated fields, so that you could use INITIALIZE RECORD-BUF, when needed.
- Only do read-hold when it's time to update, and keep track of updates count.
- Multifetch can be useful, but I never tried it myself.
Have a good one, mates. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|