Editing Database Files and other Data

From Try-AS/400
Revision as of 23:57, 12 March 2020 by PoC (talk | contribs) (De-whichified)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

As explained in Filesystems and Files on the AS/400, the AS/400 supports multiple file types. We will focus on database files in this article, though.

Stream Files

The AS/400 permits green-screen editing of stream files in the IFS with the edtf command. Enter EDTF in a command line and press F4 to learn about parameters.

Source Files

Members of source files are edited with the Source Entry Utility (SEU)[1]. Since SEU requires manual declaration of Library, File and Member to edit, it's more often indirectly invoked with a command part of PDM[2], WRKMBRPDM.[3] This command provides one with a member list of a chosen source file and thus makes it easy to navigate between members.

Database Files

There are basically 3½ ways to edit (or view) database file contents:

  • Create a DFU program with STRDFU that directs you to the appropriate menu and
    • allows some possibilities in UI design via item 2,
    • Create a throwaway temporary DFU program that gets deleted after using via item 5,
  • Use the AS/400 facilities to Program an Application yourself. This sounds a lot more complicated than it is.
  • Utilize the interactive SQL facility strsql.

Beyond

See also: Editing Source Files using Eclipse and FTP

Footnotes

  1. Enter STRSEU in a command line and press F4 to learn about parameters.
  2. Program Development Manager, a collection of programs to ease development and dependency tracking of medium to large size projects.
  3. Enter WRKMBRPDM in a command line and press F4 to learn about parameters.