7.2.2 ADD_ENTRY Comments / Warnings
- Use of the AFTER parameter specifying anything other than *END may incur a performance penalty because of the underlying implementation of working lists. Heavy use should be benchmarked with realistically sized data sets before being put into a production environment. Possible design alternatives include replacement of the working list by a keyed work file and construction of a second working list from the first.
- Use of the AFTER parameter specifying anything other than *END also means that the entry number of all entries succeeding the newly added entry are incremented by 1. This may cause problems where the entry number of a particular entry is assumed to remain static, for example where 'pointers' to working list entries are used and also where the entries in a list are processed in a loop other than SELECTLIST/ENDSELECT.