|
Since they are varying you can't just use %addr of the field, you need %addr(W#TKN : *data) so it points to the actual data part of the field bypassing the length portion at the beginning. If you are not at a new enough release use %addr(W#TKN : 2) instead. Do that for both fields in the call.
Scott Mildenberger
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of RWesh@xxxxxxxxxxx
Sent: Monday, April 06, 2015 1:54 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: Base64 Decode Help
Apologies
D rc S 10U 0
D W#TKN S 50a varying
D W#TKN2 S 50a varying
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.