• 1000 и слово "RXA_RX_CLAIM_PRSCRBR_XREF_HIS"). Что я делаю не так?
SET MySrcTdpId='EDWD';
SET MySrcDatabase='USS_LAB_OWN_TABLES';
SET MyDstTdpId='EDWP';
SET MyDstUserDatabase='USS_LOAD_LOG_TABLES';
USING CHAR SET ASCII
DEFINE JOB MyJob
(
DEFINE SCHEMA SCHEMA_TRX from TABLE 'USS_LAB_OWN_TABLES.RXA_RX_CLAIM_PRSCRBR_XREF_HIS';
DEFINE OPERATOR DDLOperator()
TYPE DDL
ATTRIBUTES
(
VARCHAR PrivateLogName = 'ddl_log',
VARCHAR TdpId = @MyDstTdpId,
VARCHAR LogonMech = 'ldap',
VARCHAR UserName = 'bond',
VARCHAR UserPassword = 'pwxxxxxx',
VARCHAR WorkingDatabase = @MyDstUserDatabase
);
DEFINE OPERATOR MyProducer()
TYPE SELECTOR
SCHEMA SCHEMA_TRX
ATTRIBUTES
(
VARCHAR DateForm = 'IntegerDate',
VARCHAR PrivateLogName = 'producer_log',
VARCHAR TdpId = @MySrcTdpId,
VARCHAR LogonMech = 'ldap',
VARCHAR UserName = 'bond',
VARCHAR UserPassword = 'pwxxxxxx',
VARCHAR SelectStmt = 'SELECT *
FROM "USS_LAB_OWN_TABLES"."RXA_RX_CLAIM_PRSCRBR_XREF_HIS"',
VARCHAR WorkingDatabase = @MySrcDatabase
);
DEFINE OPERATOR MyConsumer()
TYPE LOAD
SCHEMA SCHEMA_TRX
ATTRIBUTES
(
VARCHAR DateForm = 'IntegerDate',
VARCHAR ErrorTable1 = 'MV_TRX_errors1',
VARCHAR ErrorTable2 = 'MV_TRX_errors2',
VARCHAR LogTable = '"USS_LOAD_LOG_TABLES"."MV_TRX_LOG"',
VARCHAR PrivateLogName = 'consumer_log',
VARCHAR TargetTable = '"INSERT INTO "RXA_RX_CLAIM_PRSCRBR_XREF_HIS"',
VARCHAR TdpId = @MyDstTdpId,
VARCHAR LogonMech = 'ldap',
VARCHAR UserName = 'bond',
VARCHAR UserPassword = 'pwxxxxxx',
VARCHAR WorkingDatabase = @MyDstUserDatabase
);
STEP export_the_data
(
APPLY
('INSERT INTO "RXA_RX_CLAIM_PRSCRBR_XREF_HIS"
( :CLAIM_PHARM_ID_RX, :PAYER_BOX, :FILL_DATE, :CLAIM_STATUS, :PRESCRIBER_ID,
:PRESCRIBER_FIRST_NAME, :PRESCRIBER_LAST_NAME, :PRESCRIBER_ADDRESS1,
:PRESCRIBER_ADDRESS2, :PRESCRIBER_STATE, :PRESCRIBER_CITY, :PRESCRIBER_ZIP_CODE,
:PRESCRIBER_PHONE, :PRESCRIBER_FAX);')
TO OPERATOR (MyConsumer)
SELECT * FROM OPERATOR (MyProducer);
);
);