-- * *****************************************************************************
-- * NAME : xarcnv01a.ctl *
-- * PURPOSE : Control File for loading Customer Data *
-- * into Staging Tables *
-- * *
-- * Author Date Ver Description *
-- * ------ ---------- --- ----------------------------------------------*
-- * MADHU DHARE 18-Dec-2015 1.0 Initial Version *
-- * *
-- *******************************************************************************
LOAD DATA
TRUNCATE
continueif last != '#'
into table XX_AR_FILE_STG
when rec_type='CRC'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
(REC_TYPE position(1:3) char,
RECORD_COUNT integer external,
DESCRIPTION char,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
into table XX_AR_CUST_STG
when rec_type='CUS'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
(REC_TYPE position(1:3) char,
CUSTOMER_ID integer external,
CUSTOMER_TYPE char,
CUSTOMER_FIRST_NAME char,
CUSTOMER_LAST_NAME char,
CUSTOMER_TITLE char,
DOB date,
GENDER char,
NATIONALITY char,
JOB_TITLE char,
RELATED_ORG_ID integer external,
RELATIONSHIP_TYPE char,
ROLE_TYPE char,
SITE_USE_CODE char,
RESPONSIBILITY_CODE char,
LANGUAGE char,
ACCTG_TYPE char,
CUSTOMER_CLASS char,
PROFILE_CLASS char,
START_DATE_ACTIVE date,
END_DATE_ACTIVE date,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
into table XX_AR_ADDRESS_STG
when rec_type='ADD'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
( REC_TYPE position(1:3) char,
ADDRESS_ID integer external,
PRIMARY_ADDRESS char,
CUSTOMER_ID integer external,
ADDRESS_TYPE char,
ADDRESS1 char,
ADDRESS2 char,
ADDRESS3 char,
ADDRESS4 char,
CITY char,
STATE char,
POSTAL_CODE char,
COUNTY char,
COUNTRY char,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
into table XX_AR_CONTACT_STG
when rec_type='CON'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
( REC_TYPE position(1:3) char,
CONTACT_ID integer external,
CUSTOMER_ID integer external,
ADDRESS_ID integer external,
PHONE char,
PHONE_EXT char,
FAX char,
MOBILE char,
EMAIL char,
USAGE_TYPE char,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
-- * NAME : xarcnv01a.ctl *
-- * PURPOSE : Control File for loading Customer Data *
-- * into Staging Tables *
-- * *
-- * Author Date Ver Description *
-- * ------ ---------- --- ----------------------------------------------*
-- * MADHU DHARE 18-Dec-2015 1.0 Initial Version *
-- * *
-- *******************************************************************************
LOAD DATA
TRUNCATE
continueif last != '#'
into table XX_AR_FILE_STG
when rec_type='CRC'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
(REC_TYPE position(1:3) char,
RECORD_COUNT integer external,
DESCRIPTION char,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
into table XX_AR_CUST_STG
when rec_type='CUS'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
(REC_TYPE position(1:3) char,
CUSTOMER_ID integer external,
CUSTOMER_TYPE char,
CUSTOMER_FIRST_NAME char,
CUSTOMER_LAST_NAME char,
CUSTOMER_TITLE char,
DOB date,
GENDER char,
NATIONALITY char,
JOB_TITLE char,
RELATED_ORG_ID integer external,
RELATIONSHIP_TYPE char,
ROLE_TYPE char,
SITE_USE_CODE char,
RESPONSIBILITY_CODE char,
LANGUAGE char,
ACCTG_TYPE char,
CUSTOMER_CLASS char,
PROFILE_CLASS char,
START_DATE_ACTIVE date,
END_DATE_ACTIVE date,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
into table XX_AR_ADDRESS_STG
when rec_type='ADD'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
( REC_TYPE position(1:3) char,
ADDRESS_ID integer external,
PRIMARY_ADDRESS char,
CUSTOMER_ID integer external,
ADDRESS_TYPE char,
ADDRESS1 char,
ADDRESS2 char,
ADDRESS3 char,
ADDRESS4 char,
CITY char,
STATE char,
POSTAL_CODE char,
COUNTY char,
COUNTRY char,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
into table XX_AR_CONTACT_STG
when rec_type='CON'
fields terminated by ';'
optionally enclosed by '"'
trailing nullcols
( REC_TYPE position(1:3) char,
CONTACT_ID integer external,
CUSTOMER_ID integer external,
ADDRESS_ID integer external,
PHONE char,
PHONE_EXT char,
FAX char,
MOBILE char,
EMAIL char,
USAGE_TYPE char,
STATUS CONSTANT 'NW',
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id",
CREATION_DATE SYSDATE,
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_LOGIN "fnd_global.login_id"
)
No comments :
Post a Comment