Change Data (CHGDTA)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Control Language (CL) command CHGDTA lets you add, change, or delete records in an existing database file.

Error messages for CHGDTA

*ESCAPE Messages

IDU0120
Critical table missing. Command terminated.
IDU0141
Critical table inconsistent. Command terminated.
IDU0167
Not authorized to &1.&2.
IDU1205
Application &1.&2 not found.
IDU9001
Error found on &1 command.
Top

Parameters

Keyword Description Choices Notes
DFUPGM DFU program Qualified object name Required, Positional 1
Qualifier 1: DFU program Name
Qualifier 2: Library Name, *LIBL, *CURLIB
FILE Data base file Qualified object name Optional, Positional 2
Qualifier 1: Data base file Name, *SAME
Qualifier 2: Library Name, *LIBL, *CURLIB
MBR Member Name, *FIRST Optional, Positional 3
Top

DFU program (DFUPGM)

Specifies the qualified name of the DFU program that will control the interactive update of data.

*LIBL
DFU will use your library list to search for a specified program.
*CURLIB
Type *CURLIB to use your current library. If no current library entry exists in the library list, QGPL is used. If you do not specify a library name, *LIBL is used.
Top

Data base file (FILE)

Specifies the database file you want to process.

The possible values are:

*SAME
DFU will use the file that was used to define the program.
file-name
Type the qualified name of the data file you want DFU to process. The file should have at least one record format name in common with the file used to define the program.
*LIBL
DFU will use your library list to search for a specified program.
*CURLIB
Type *CURLIB to use your current library. If no current library entry exists in the library list, QGPL is used. If you do not specify a library name, *LIBL is used.
Top

Member (MBR)

Specifies the member in the file you want to process.

The possible values are:

*FIRST
DFU will use the first member of the file.
member-name
Type the name of the member you want DFU to process.
Top

Examples

None
Top

Error messages

*ESCAPE Messages

IDU0120
Critical table missing. Command terminated.
IDU0141
Critical table inconsistent. Command terminated.
IDU0167
Not authorized to &1.&2.
IDU1205
Application &1.&2 not found.
IDU9001
Error found on &1 command.
Top