jdftval keyword

1
DB2 UDB for iSeries Database Programming V5R1 Record missing in secondary file; JDFTVAL keyword specified (Case 2B) Assume that a join logical file is specified as in Figure 14 , except that the JDFTVAL keyword is specified, as shown in the following DDS: The program reads the join logical file and gets the following records: With JDFTVAL specified, the system returns a record for 500, even though the record is missing in PF2. Without that record, some field values can be missing in the join record (in this case, the Salary field is missing). With JDFTVAL specified, missing character fields normally use blanks; missing numeric fields use zeros. However, if the DFT keyword is specified for the field in the physical file, the default value specified on the DFT keyword is used. [ Top of Page | Previous Page | Next Page | Table of Contents | Index ] JLF |...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+... A JDFTVAL A R JOINREC JFILE(PF1 PF2) A J JOIN(PF1 PF2) A JFLD(NBR NBR) A NBR JREF(PF1) A NAME A SALARY A K NBR A Page 1 of 1 Record missing in secondary file; JDFTVAL keyword specified (Case 2B) 7/1/2010 http://as400bks.rochester.ibm.com/iseries/v5r1/ic2924/info/dbp/rbafomst115.htm

Upload: eddie-wong

Post on 10-Apr-2015

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: JDFTVAL Keyword

DB2 UDB for iSeries Database Programming V5R1

Record missing in secondary file; JDFTVAL keyword specified (Case 2B)

Assume that a join logical file is specified as in Figure 14, except that the JDFTVAL keyword is specified, as shown in the following DDS:

The program reads the join logical file and gets the following records:

With JDFTVAL specified, the system returns a record for 500, even though the record is missing in PF2. Without that record, some field values can be missing in the join record (in this case, the Salary field is missing). With JDFTVAL specified, missing character fields normally use blanks; missing numeric fields use zeros. However, if the DFT keyword is specified for the field in the physical file, the default value specified on the DFT keyword is used.

[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

JLF

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8

A JDFTVAL

A R JOINREC JFILE(PF1 PF2)

A J JOIN(PF1 PF2)

A JFLD(NBR NBR)

A NBR JREF(PF1)

A NAME

A SALARY

A K NBR

A

Page 1 of 1Record missing in secondary file; JDFTVAL keyword specified (Case 2B)

7/1/2010http://as400bks.rochester.ibm.com/iseries/v5r1/ic2924/info/dbp/rbafomst115.htm