WRKPGMTBL (Work with Program Tables)

WRKPGMTBL Command syntax diagram

 

Purpose

The Work with Program Tables (WRKPGMTBL) command allows you to create finance program tables. Once they are created, you can add or delete program names in these tables. Several finance program tables can be defined, but each table must have a unique name.

Finance program table updates can be accessed by any finance job that is submitted after all changes are completed.

Restriction: This command is shipped with public *EXCLUDE authority.

 

Optional Parameters

PGMTBL
Specifies the name of a table that contains finance program IDs and user-associated program names.

*ALL: The list of existing program tables is shown. From this display, you can create, delete, change, or display program tables.

*SELECT: The list of existing program tables is shown. This value, which performs the same function as *ALL, is included for compatibility with previous releases.

program-table-name: Specify the name of the program table with which to work.

TEXT
Unused parameter provided for compatibility with previous releases.

Examples of WRKPGMTBL

Example 1: Working With All Finance Program Tables

WRKPGMTBL  PGMTBL(*SELECT)

This command allows you to work with all finance program tables. You can create a new table, or select an existing table to change, delete, or display.

Example 2: Working With a Program Table

WRKPGMTBL  PGMTBL(PGMTBL1)

This command allows you to work with program table PGMTBL1. With this command you can create, change, delete, or display a table.

Error messages for WRKPGMTBL

*ESCAPE Messages

CPF8379
Error while processing file &1 in &2.
CPF8380
Error while opening file &1 in &2.
CPF8381
Error while closing file &1 in &2.