Download presentation
Presentation is loading. Please wait.
Published byDouglas Alexander Modified over 9 years ago
1
1 Intro to the AS/400 Chapter 8 - Data File Utility Copyright 1999 by Janson Industries
2
2 Objectives n Explain the capabilities of a DML n Explain how DFU performs typical DML functions n Demonstrate the advantages and disadvantages of DFU
3
3 Data Manipulation Language n Allows you to add, delete and modify data n On the AS/400 you can use u Application programs u SQL/400 u DFU
4
4 DFU n Allows you to create temporary or permanent update programs n Permanent update programs are stored as program objects with an attribute equal to DFU. Library Type = *PGM Att = DFU DFU User
5
5 DFU generated programs n Allow you to display, modify or delete a single record (from one file) at a time n Generate an audit report and a screen n When creating permanent programs you can control: u Which fields can be accessed u The format of the displayed data u Audit report content u The update screen appearance
6
6 Using DFU n To Create and Run a Temporary Program: u STRDFU - Option 5 u Option 18 from the “Work with Objects using PDM” screen n You are prompted for a library and file name
7
7 STRDFU
8
8 Using DFU
9
9 n If file is empty, default is entry mode n If file has data, default is change mode n To switch between modes: u F9 - Entry Mode u F11 - Change Mode u F23 - Deletes current record
10
10 DFU update screen
11
11 Defining Permanent Programs n Option 2: Create a Program n Prompts for file and program names n A series of screens will be displayed which allow you to: u Control program functions - update on scroll, generate an audit report, etc. u Define the screen layout and save the DDS definition u Control data fields - select and sequence, format, etc.
12
12 Defining Permanent DFU Programs Format Control Function Control
13
13 Defining Permanent DFU Programs
14
14 Defining Permanent DFU Programs
15
15 Defining permanent programs n DFU creates: u The permanent program u A display file (a screen) u Optionally, the DDS screen definition Library User DFU Source Physical File Type = DSPF *PGM DFU *FILE DSPF
16
16 DFU generated update programs n Allow you to update data n Generate an audit report User Member Data Physical File Library Update Program data Audit Report
17
17 Managing Permanent DFU Pgms n Option 1: Run a Program u Activates previously defined update programs n Option 3: Change a Program u The create screens are redisplayed with the originally specified values u You can change any value n Option 4: Delete a Program u Deletes any previously defined update program
18
18 Points to Remember n DFU is a quick way to generate update programs n Update programs allow you to easily add, delete and update data, one record at a time. n Any significant amount of data is burdensome to manipulate with DFU generated programs. n Permanent programs can be tailored re: function and format.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.