Passing Varaibles to the control file in SQL Loader [message #158147] |
Wed, 08 February 2006 12:25 |
Ganeshbabu Venkat
Messages: 17 Registered: March 2001
|
Junior Member |
|
|
Can we dynamically pass some variables in to the control file. This is one of my fields in the SQL Loader
LAST_NOTIFICATION_DT "systimestamp",
is there a way that i could get the value for systemtimestamp in my shell file and pass it on as a variable value. please let me know.
|
|
|
|
|
|
Re: Passing Varaibles to the control file in SQL Loader [message #158153 is a reply to message #158152] |
Wed, 08 February 2006 12:48 |
Ganeshbabu Venkat
Messages: 17 Registered: March 2001
|
Junior Member |
|
|
to pass it on to the control file
OPTIONS (SKIP=1, ERRORS=999999)
LOAD DATA
INFILE '$data'
BADFILE '$bad'
DISCARDFILE '$discard'
APPEND INTO TABLE REFRESH_SUPPRESSION_STAGING
WHEN (1) !='3'
(
ORIGINAL_LOAD_DT "sysdate",
LAST_NOTIFICATION_DT "systimestamp",
NPA_CD POSITION(2:4),
NXX_CD POSITION(5:7),
LINE_NBR POSITION(8:11),
NOTIFICATION_SOURCE_CD POSITION(12:14)
)
LAST_NOTIFICATION_DT variable name that holds the time stamp
|
|
|
|
|
|
|
|
|