Previous Topic: Customizing Screen DisplaysNext Topic: Task Code Entry Options


Tailoring Task Codes

You can generate separate versions of the PMxxINIT modules for users with a higher security class. For example, you could have one set of task codes for DBAs and one set of task codes for programmers. The DBAs are allowed to save modules in the dictionary; programmers are not.

To assign a separate set of task codes, perform the following steps:

  1. Code separate initialization modules (PMRTINIT, PMIMINIT, or PMAMINIT). The #PMGEN macros contained in each of these modules should specify the abilities that you want the higher class of users to have. For example, you may want to specify SITESAV=YES and SORT=YES.

    Note: Use the modules supplied with your Performance Monitor installation media as models. You can change any of the #PMGEN parameters except PROGRAM.

  2. Link edit the initialization module, but specify a name other than PMxxINIT in the link-edit NAME statement (for example, PMRTINI2).

    Be sure to include an ENTRY INITEP1 statement in the link-edit stream.

  3. Using the system generation compiler, define the new initialization program and a task to invoke the program. For example, task code PMRM2 could invoke program PMRTINI2.

    You could assign a higher security class to this task code so that it is available only to certain users. For prototype system generation statements, see the DLODPERF module, which is automatically installed into the specified source library by the Performance Monitor installation process.