Work with Program Tables (WRKPGMTBL)

The Work with Program Table (WRKPGMTBL) command lets you create finance program tables and, once they are created, lets you add or delete program names in these tables. Several finance program tables can be defined, but you must use unique names for each table. If the program table you specify on this command does not exist, it is created.

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.

Parameters

Keyword Description Choices Notes
PGMTBL Program table Name, *SELECT, *ALL Optional, Positional 1
TEXT Text 'description' Character value, *BLANK Optional

Program table (PGMTBL)

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

The possible values are:

*ALL
Displays all of the program tables currently defined.
*SELECT
The Work with Program Table display is shown. With this display you can create, change, delete, or display program tables.
program-table-name
Specify the name of the program table that you want to work with.

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

The possible values are:

*BLANK
No text is specified.
'description'
Specify no more than 50 characters of text, enclosed in apostrophes.

Examples

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

*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.