$ 0 0 my case i have one row and one column in input file. here is file defination and read. DESCRIPTION 'External File DELETE FROM CUSTOMER TABLE' ( DEFINE SCHEMA CUST_NUM_SCHEMA DESCRIPTION 'CUSTOMER NUMBER SCHEMA' ( Cust_Num INTEGER ); DEFINE OPERATOR DATA_PRODUCER DESCRIPTION 'DATA CONNECTOR OPERATOR' TYPE DATACONNECTOR PRODUCER SCHEMA CUST_NUM_SCHEMA ATTRIBUTES ( VARCHAR OpenMode = 'Read', VARCHAR Format = 'Formatted', VARCHAR IndicatorMode, VARCHAR DirectoryPath = '/infadata/tptctl', VARCHAR FileName = 'date1.txt' ); APPLY ('DELETE FROM lx_hold.I1877_test WHERE cno lt :CustNo') TO OPERATOR (UPDATE_OPERATOR [1]) SELECT * FROM OPERATOR (DATA_PRODUCER[1]); );
my case i have one row and one column in input file.
here is file defination and read.
DESCRIPTION 'External File DELETE FROM CUSTOMER TABLE'
(
DEFINE SCHEMA CUST_NUM_SCHEMA
DESCRIPTION 'CUSTOMER NUMBER SCHEMA'
(
Cust_Num INTEGER
);
DEFINE OPERATOR DATA_PRODUCER
DESCRIPTION 'DATA CONNECTOR OPERATOR'
TYPE DATACONNECTOR PRODUCER
SCHEMA CUST_NUM_SCHEMA
ATTRIBUTES
(
VARCHAR OpenMode = 'Read',
VARCHAR Format = 'Formatted',
VARCHAR IndicatorMode,
VARCHAR DirectoryPath = '/infadata/tptctl',
VARCHAR FileName = 'date1.txt'
);
APPLY
(
'DELETE FROM lx_hold.I1877_test WHERE cno lt :CustNo')
TO OPERATOR (UPDATE_OPERATOR [1])
SELECT * FROM OPERATOR (DATA_PRODUCER[1]);
);