Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Limit on length of decode arguments??
Your question:
>
> Is their a length on decode statement??
>
Yes there is, and I think it is about 2000. I ran into exactly that with decode, and had to split the code into 2 decodes. Messy. Long time ago - forgot the actual value at the ceiling.
peter
edinburgh
........
> -----Original Message-----
> From: Bob Metelsky [mailto:bmetelsky_at_cps92.com]
> Sent: 10 June 2002 23:03
> To: Multiple recipients of list ORACLE-L
> Subject: Limit on length of decode arguments??
>
>
> Hello all
>
> In an effort to clean up data as I'm importing, I need to pass
> the bad data to decode. It seems onece I pass < 250 chars the
> code fails
> with
> SQL*Loader-350: Syntax error at line 93.
> Token longer than max allowable length of 258 chars
>
> The articles on metalink hint on problems with the control
> file, I think
> it's the *length* of argunets passed to decode
>
> (:DEV_DATE 'No Mass'),
> TO_DATE('06/11/1958','mm/dd/yyyy'),TRIM('12/31/200312/31/2003'
> ),TO_DATE(
> '12/31/2003', 'mm/dd/yyyy'),'02/30/2003',TO_DATE('2/28/2003',
> 'mm/dd/yyyy')
>
>
> As soon as I add another comparison the code fails
>
> Is their a length on decode statement??
>
> Thanks
> Bob
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Bob Metelsky
> INET: bmetelsky_at_cps92.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (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).
>
scan all attachments. http://www.bgs.ac.uk *********************************************************************
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Robson, Peter INET: pgro_at_bgs.ac.uk Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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).Received on Tue Jun 11 2002 - 04:53:19 CDT
![]() |
![]() |