You are on page 1of 4

Steps:

1- Create ctl file like


XXBSI_DSL_DATA_LOAD_LDN.ctl

XXBSI_DSL_DATA_L
OAD_LDN.ctl

XXBSI_DSL_DATA_LOAD_LDN.ctl File include the following:

--------------------------------------------------------------------------------
-- Owner : Mobinil
-- Project : CORE
-- Program Type : SQL*Loader Control File
-- Source File :
-- Conc Prog Short Name : XXBSI_DSL_DATA_LOAD
--
-- Description:
-- This Control File Loads DSL Invoices data from BSCS to Oracle Staging Table.
--
-- Modification History:
-- ========= ============= ====================================================
-- Date Author Comments
-- ========= ============= ====================================================
-- 26-Jan-16 Ghassan Harb Initial Creation
--
--------------------------------------------------------------------------------
OPTIONS (SILENT =(HEADER,FEEDBACK,DISCARDS)SKIP=0)
LOAD DATA
CHARACTERSET AR8MSWIN1256
APPEND
INTO TABLE XXBSI_DSL_STG
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(
"BATCH_NUMBER" CHAR(20),
"TRANSACTION_DATE" DATE "YYYYMMDD",
"ACCOUNT_NUMBER" CHAR(50),
"CREDIT_AMOUNT" ,
"DEBIT_AMOUNT" ,
"CURRENCY_ID" ,
"REFERENCE" CHAR(50)
)
Note ctl file will be replace on Server on ANY_TOP/12.0.0/bin
The below sample file will be replaced on AR_TOP/12.0.0/bin

2- Create concurrent program


Execute:

Program:
Paramters:

Paramter is File name & Path & File should be CSV File
Like:
select '/apps/11.5/BSI/LDNINV_' || to_char(sysdate, 'yyyymmdd') || '.csv' from dual

You might also like