Hi David, 

Ron's suggestion worked, I just tried it:

LOAD_DATE               "TO_DATE('010103','MMDDYY')"

Give it a try.

-----Original Message-----
Sent: Thursday, June 26, 2003 3:24 PM
To: Multiple recipients of list ORACLE-L



Thanks Lisa.  But regrettably my LOADDATE isn't always SYSDATE.  Do you know

the syntax for an arbitrary date?

Dave

-----Original Message-----
Sent: Thursday, June 26, 2003 1:09 PM
To: Multiple recipients of list ORACLE-L


Hi David, 

Here's one of my control files, it works for me...  LOAD_DATE is indeed a
date field. 

OPTIONS (DIRECT=TRUE, PARALLEL=FALSE, BINDSIZE=1048576)
UNRECOVERABLE
LOAD DATA
INFILE 'D:\FTPRoot\vegas\ascname.txt'
BADFILE 'D:\data\vegas\log\ascname.bad'
DISCARDFILE 'D:\data\vegas\log\ascname.dsc'
TRUNCATE
INTO TABLE  ASCNAME_RAW
(
ID                      RECNUM,
AN_SITE                 POSITION(1:2) CHAR 
                        NULLIF AN_SITE=BLANKS,                         
AN_ASSOC_NO             POSITION(3:6) CHAR 
                        NULLIF AN_ASSOC_NO=BLANKS,                 
AN_ASSOC_NAME           POSITION(7:36) CHAR    
                        NULLIF AN_ASSOC_NAME=BLANKS,            
AN_ASSOC_LEGAL_NAME     POSITION(37:80) CHAR 
                        NULLIF AN_ASSOC_LEGAL_NAME=BLANKS,

LOAD_DATE               SYSDATE                   
)

Lisa Koivu
Oracle Database Monkey
Fairfield Resorts, Inc.
5259 Coconut Creek Parkway
Ft. Lauderdale, FL, USA  33063
Office: 954-935-4117  
Fax:    954-935-3639
Cell:    954-683-4459


-----Original Message-----
Sent: Thursday, June 26, 2003 12:40 PM
To: Multiple recipients of list ORACLE-L



I can't figure out how to specify a constant date for a column 
in a SQL*Loader control file and can't find any examples.

I tried:
  LOADDATE  CONSTANT "TO_DATE('20030626', 'YYYYMMDD')",
but I get this error message in the log file:
  ORA-01858: a non-numeric character was found where a numeric was expected

Can anyone tell me the correct syntax?

David Lewandowski
Focused Health Solutions
[EMAIL PROTECTED]

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: David Lewandowski
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Koivu, Lisa
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: David Lewandowski
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

"The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments."


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Koivu, Lisa
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to