|
also... when using your srvpgm procedure...calculations)...
when piece_type = t_packed;
packed_data = *zero;
%subst(char_area:%size(packed_data)-max_byte_len+1:max_byte_len
= %subst(string_buffer:beg_byte_pos:max_byte_len);
return %char(packed_data / (10 ** use_scale));
this return statement produces a data decimal error...
(I honestly not sure the intentions of the return statement
values in debug...
PACKED_DATA = 00000000000000000000000 01Ü1000.
max_byte_len = 9
beg_byte_pos = 1
STRING_BUFFER =
....5...10...15...20...25...30...35...40...45...50...55...60
1 ' A 00000'
61 ' '
121 ' '
can you advise on whats going on?
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.