Re: Decode base64 to job CCSID?
Justin Taylor <[email protected]> Wed, 1 Apr 2026 12:53:02 -0500
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <CAJu8Sp825as-pGa264zGo+BiNZA1AKUU_LpeEBZk7AKxaWWA2w@mail.gmail.com> |
If I specify the CCSID on retDecoded, I get SQLSTATE 42806 "Variable
RETDECODED not compatible or value too long.".
Example:
Dcl-s retDecoded varChar(1000) ccsid(*UTF8) ;
On Wed, Apr 1, 2026 at 12:32 PM cesco via RPG400-L <
[email protected]> wrote:
> You need to know what encoding the encoded in base64 was originally in.
> then try to declare retDecoded with that CCSID
>
>
>
>
>
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact [email protected] for any subscription related questions.