If the EDT and LMS utility routines are called in the same procedure, then you must make sure that both utility routines offer some functions that are also offered by the other utility routine. For example, a library element can be opened and edited in EDT (@OPEN statement), and a a library element can also be edited in LMS (EDIT-ELEMENT statement).
Every time you switch programs while processing a library element, additional time is needed to unload the one program and then load the other program. Direct processing in a single utility routine (EDT or LMS) is preferred over processing in several program calls (see the following example):
Call LMS - extract element from file - terminate LMS
Call EDT - read in and process file - terminate EDT
Call LMS - store file in element again - terminate LMS
Recommended syntax | Syntax with lower performance |
/START-LMS //OPEN-LIBRARY LIB=&(LIB-1) //EDIT-ELEMENT ELEM=&(ELEM-1),- // TYPE=&(TYP) ... @RETURN //END or: /START-EDT @OPEN L=&(LIB-1)(E=&(ELEM-1),&(TYP)) ... @CLOSE @HALT |
|