|
To make the DECH works, you need to use Constants known at compileover Len
time, not variables
Change the:
%len(packed_data)
by:
dcl-c packed_data_size %Size(packed_data); //Prefered to use Size
Change the:
use_scale
by:
dcl-c use_scale 2; // 2 decimals wanted
then:
return %char(%dech(packed_data/d_shift:packed_data_size:use_scale));
and voilà!
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.