Command reference / db

CHGDTA

Change Data

Opens a Data File Utility application to add, edit, or delete records in an existing database file.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 3.

Parameters

DFUPGM DFU program

Enter the library-qualified name of the DFU program that will control the interactive update of data.

Type
*QUAL
Required
Yes
Case
Uppercase
*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.
Qualified parts (object, then library; write LIBRARY/OBJECT)

DFU program DFU program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

FILE Data base file

Sets the database file you want to process.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase
*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.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Data base file Data base file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Suggested / special values: *SAME

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *SAME

MBR Member

Sets the member in the file you want to process.

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST

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

IBM command documentation

Generated from os/cl/catalog/CHGDTA.json and os/cl/help/CHGDTA.json.