Constant Date in SQL*Loader Control File

2003-06-26 Thread David Lewandowski

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', 'MMDD'),
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).


RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Koivu, Lisa
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', 'MMDD'),
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).


RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Ron Rogers
David,
 Try removing the word CONSTANT from the string.
LOADDATE   TO_DATE('20030626', 'MMDD'),
Ron
 [EMAIL PROTECTED] 06/26/03 02:09PM 
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', 'MMDD'),
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: Ron Rogers
  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).


RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread David Lewandowski

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', 'MMDD'),
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).


RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Goulet, Dick
Dave,

I believe if you specify in the .cal file:

loaddate to_date('20030626', 'MMDD'),

That will default the date to what you want.  Now if the date is sometimes specified 
that's a different story.

Dick Goulet
Senior Oracle DBA
Oracle Certified 8i DBA 

-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', 'MMDD'),
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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Goulet, Dick
  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).


RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Koivu, Lisa
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', 'MMDD'),
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 

Re: Constant Date in SQL*Loader Control File

2003-06-26 Thread Daniel Fink
David,
Have you tried removing the  around the TO_DATE call? The  indicate a 
character string and Oracle is unable to translate that string into something 
acceptable for a DATE datatype.


David Lewandowski wrote:
 
 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', 'MMDD'),
 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).begin:vcard 
n:Fink;Daniel
tel;cell:303.808.3282
tel;work:303.272.3225
x-mozilla-html:TRUE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:DB Services Lead
x-mozilla-cpt:;-4832
fn:Daniel Fink
end:vcard


RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread David Lewandowski

That's it.  Thanks Ron and everyone else for your help.  Dave

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


David,
 Try removing the word CONSTANT from the string.
LOADDATE   TO_DATE('20030626', 'MMDD'),
Ron
 [EMAIL PROTECTED] 06/26/03 02:09PM 
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', 'MMDD'),
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: Ron Rogers
  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).