Search found 2 matches

by pgurov
Thu Jul 25, 2024 9:50 pm
Forum: Other ScottKlement.com Tools
Topic: Strange result using base64_decode
Replies: 1
Views: 27235

Re: Strange result using base64_decode

Found the issue. It is in the way how setting the length works. from the ILE RPG Language reference: If the set length is greater than the current length, the characters in the field between the old length and the new length are set to blanks. The problem is that the "blanks" are always x4...
by pgurov
Thu Jul 25, 2024 5:15 pm
Forum: Other ScottKlement.com Tools
Topic: Strange result using base64_decode
Replies: 1
Views: 27235

Strange result using base64_decode

Hello, I came across a strange behaviour of the base64_decode function. This is the code that I have: H DFTACTGRP(*NO) actgrp(*caller) decedit('.') H debug option(*srcstmt:*nodebugio:*noshowcpy) H bnddir('BASE64') /copy BASE64_H d message s 80000a ccsid(*utf8) varying inz(*all' ') d msg s 80000a var...