Beispiel 3
Dieses dritte Beispiel entspricht fast dem vorherigen Beispiel. Der einzige Unterschied besteht darin, dass in der Klausel MASKED COLUMNS ein Wert CUTOFF angegeben und auf 2 gesetzt wurde, um die Anzahl der übersprungenen Zeilen zu begrenzen. Dadurch wird der Wert CUTOFF auf einen Wert gesetzt, der kleiner als die Anzahl Zeilen in der Tabelle ist, die ungültige Werte in der Spalte CCN1 aufweisen:
[i958@lat186(:) hm500_mnt]$ db2hpu -f emp_ccn.ctl -i i958
INZM031I Optim High Performance Unload for Db2 06.01.00.001(130920) 64 bits 09/20/2013 (Linux lat186 x86_64)
INZI473I Memory limitations: 'unlimited' for virtual memory and 'unlimited' for data segment
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+
000001 GLOBAL CONNECT TO SAMPLE
000002 DATAMASKING ODPP LOAD LOADER "/opt/odpp/bin/libODPPLoader.so.9.1"
000003 PARSER "/opt/odpp/bin/libODPPParser.so.9.1"
000004 ADAPTER "/opt/odpp/bin/libODPPAdapter.so.9.1"
000005 PROVIDER "/opt/odpp/bin/libODPPProvider.so.9.1"
000006 ;
000007 UNLOAD TABLESPACE
000008 LOCK NO
000009 FLUSH BUFFERPOOLS NO
000010 SELECT EMPNO, CCN1 FROM EMP_CCN_SMALL;
000011 MASKED COLUMNS (CCN1 "provider=ccn,flddef1=(name=ccn1,dt=char),method=rep" SKIP CUTOFF 2)
000012 OUTFILE ("outfile")
000013 FORMAT DEL;
000014
INZU462I HPU control step start: 17:45:46.523.
INZU463I HPU control step end : 17:45:46:853.
INZU464I HPU run step start : 17:45:46.941.
INZU645E There are too many rows containing invalid values for the masking applied on I958.EMP_CNN_SMALL (partition 0).
INZU465I HPU run step end : 17:45:46.944.
INZU366I HPU return code 8 (reason code 0x13ea00b)