|
From: Tom Daly <tdaly_2002@yahoo.com> > I need to expand a 3 character string to 4 characters > a-la base64 encoding> > Expected results: > 24 22 9 35 > Actual results (repeatedly no matter what gyrations I try): > 00 22 00 00 > > DCL DD SOURCE CHAR(4) > INIT(X'01100001011000100110001100000000'); > /* 97 > 98 99 0 */ INIT(X'61626300') you were thinking binary and thought: INIT(B'01100001011000100110001100000000');
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.