The following is sample code used to invoke CTMAESIM from another program:
CALL CTMAES,(DUMMY)
...
DUMMY DC F'0'
When you invoke CTMAESIM from another program, observe the following conventions:
The procedure that executes the invoking program must allocate all the files that are necessary to execute AutoEdit simulation.
There must be no conflict between the DD names required by the program and by AutoEdit simulation (for example, the DD name SYSPRINT).
Because CTMAES is an authorized module, you must ensure that any program that calls it must also be authorized and resides in an authorized library.
All the loadlibs in the STEPLIB concatenation must be authorized.
INCLUDE the CTMAES module from the IOA loadlib in the link-edit step.
Prior to calling CTMAES, the invoking program must be placed into AMODE 31.
The calling program must be in RMODE 24.
The module must not be linked as RENT (re–enterable) or REUS (reusable).
Even though CTMAES does not require any parameters, when invoked from a high-level language such as COBOL or PL/1, it must be called with a dummy parameter containing zeros (0).