In the SQL below the select dies with [SQL0904] Resource limit exceeded., 57011, -904. Resource limit type 3 exceeded with reason code 102. Tried both Run SQL Scripts and DB2 for i.

Remove either one of the HEX functions and it runs. Any thoughts? Am I missing something obvious?

The SQL has no practical value, just experimenting on PUB400.

with e as (
select QSYS2.BASE64_ENCODE(cast('123' as varchar(10) ccsid 1208 )) as e_value
from SYSIBM.SYSDUMMY1),
d as (
select QSYS2.BASE64_DECODE(e_value) as d_value, e_value
from e
)
select d_value,HEX(d_value), e_value, HEX(e_value) from d

-- select CHAR_length(E_value) as e_len, CHAR_length(d_value) as d_len from d;
-- select d_value,HEX(d_value), e_value, HEX(e_value) from d;



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.