IBM AS/400 manual File Maintenance, F3 End Job, F5 Add, F6 Update, F7 Delete, F8 Display

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 379
Image 379
F3 End Job

File Maintenance

change the mode of processing by pressing F5 (ADD), F6 (UPDATE), F7 (DELETE), or F8 (DISPLAY).

To add

a

new

record

to

the

file,

the

program uses

the customer nu

search

argument

to chain

to

the

master

file.

If

the record does

the

program displays

the

CSTBLD

screen to

allow

the user to enter a

tomer

record.

If the record is already in

the file, an error me

user

can

press

F12,

which

sets

on

indicator

12,

to

cancel the add

release the record. Otherwise, to proceed with the add operation,

information

for

the

new

customer

record in

the

input

fields

and writ

record

to

the

master

file.

 

 

 

 

 

 

 

To update,

delete,

or

display an existing record, the program uses

number

as

the

search

argument to chain to the

master file.

If

a

tomer exists in the file, the program

displays

the

customer

file

inq

CSTINQ.

If

the

record

is not in

the

file,

an

error

message

is

dis

of processing is display or delete, the input fields are protected

Otherwise, to proceed

with

the customer record, the user can ente

in the customer record

input

fields. The user can press F12, which

12, to cancel the update or delete operation, and release the re

automatically

releases

the

record

when Enter is pressed.

In Figure 176,

the workstation user

responds to the prompt by entering

number 00007 to

display

the

customer

record.

 

 

 

 

 

 

 

DISPLAY MODE

 

 

 

22:30:21

CUSTOMER FILE MAINTENANCE

9/30/94

 

00007 <--Enter Customer Number

ˆ

F3 End Job

F5 Add

F6 Update

F7 Delete

F8 Display

˜

 

 

 

 

 

 

 

 

 

 

 

 

Figure

176.

'Customer File Maintenance' Display Mode prompt screen

 

 

Because the customer record for

customer number 00007 exists in the

the

 

data

is displayed

as show in

Figure 177

on page 356.

 

 

Chapter 19. Example of an Interactive 355Application

Page 379
Image 379
IBM AS/400 manual File Maintenance, F3 End Job, F5 Add, F6 Update, F7 Delete, F8 Display