Method

Use the following general approach to create such a program:

  1. Convert your source to RPG IV using the CVTRPGSRC command.

    Be sure to convert all /COPY members that are used by the source you are converting.

  2. Create a program object using the CRTBNDRPG command, specifying DFTACTGRP(*YES).

Specifying DFTACTGRP(*YES) means that the program object will run only in the default activation group. (The default activation group is the activation group where all OPM programs are run.) As a result, the program object will interact well with OPM programs in the areas of override scoping, open scoping, and RCLRSC.

When you use this approach you cannot make use of ILE static binding. This means that you cannot code a bound procedure call in your source, nor can you use the BNDDIR or ACTGRP parameters on the CRTBNDRPG command when creating this program.



[ Top of Page | Previous Page | Next Page | Contents | Index ]