IBM AS/400 manual Using Externally Described Disk Files, The sample

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 307
Image 307
Example of the Data Description Specifications for a Database File

Using Externally Described Disk Files

*..

1 ...

+...

2 ...

+...

3 ...

+...

4 ...

+...

5 ...

+...

6 ...

+...

7 ..

*

A

 

T.Name++++++.Len++TDpB

......

Functions++++++++++++++++++++*

A** LOGICAL

CUSMSTL

CUSTOMER MASTER FILE

 

 

 

 

 

 

A

 

 

 

 

 

 

 

UNIQUE

 

 

 

 

 

A

 

 

R CUSREC

 

 

 

 

PFILE(CUSMSTP)

 

 

 

 

A

 

 

 

 

 

 

 

TEXT('Customer Master Record')

ACUST

ANAME

AADDR

ACITY

ASTATE

AZIP

ASRHCOD

ACUSTYP

AARBAL

AORDBAL

ALSTAMT

ALSTDAT

ACRDLMT

ASLSYR

ASLSLYR

AK CUST

Figure 139.

Example of the Data Description Specifications for a Database File

The sample

DDS are for the customer master logical file CUSMSTL. The f

tains one record format CUSREC (customer master record). The data fo

contained

in

the physical file CUSMSTP, which is

identified

by

the

ke

The

UNIQUE

keyword is used to indicate

that

duplicate

key

values

for

this file. The CUST field is identified

by

a K in

position

17

key

field for this record format.

 

 

 

 

 

 

 

The

fields

in this record format are listed in the order they are

record.

The

attributes for

the

fields

are obtained from the physi

The

physical

file, in turn,

refers to

a

field-reference file to ob

the

fields.

The field-reference

file

is

shown

in

Figure 140

on page

Chapter 16. Accessing Database 283Files

Page 307
Image 307
IBM AS/400 Using Externally Described Disk Files, The sample, DDS are for the customer master logical file CUSMSTL. The f