To add initialization or termination code

  1. Make a back-up copy and then edit the following file:

    projdir\servintprojname\ UserRules\usermain.igl

    where projdir is your Enterprise Developer project directory, and servintprojname is the name of the project containing your service interface.

  2. Find the following code in the usermain.igl file:
    % if 0
        % defini $ebiz-user-initialisation-exit
            ebiz-user-initialisation-exit section.
                % * Code your ebiz initialisation exit logic here
                % * Change the preceeding '% if 0' to '% if 1'
                exit
                .
        % end
    % end
    
    % if 0
        % defini $ebiz-user-termination-exit
            ebiz-user-termination-exit section.
                % * Code your ebiz termination exit logic here
                % * Change the preceeding '% if 0' to '% if 1'
                exit
                .
        % end
    % end
  3. To include initialization or termination code, change the % if 0 for the appropriate paragraph to % if 1. This change flags the paragraph for inclusion in the generated service driver program.
  4. Code your initialization or termination logic by replacing the appropriate comment line with COBOL code.
  5. Save your changes and exit your editor.