×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I converted my code to a (service) procedure, which should be able
to be used just as is. However, though it compiles clean I am unable to
test it. So, it will have to be vetted.
**free
// Though untested, this idea is sound. This procedure will return a
// piece of a data buffer -- whether that piece is a character string,
// integer (binary numeric) data, packed numeric data, zoned numeric
// data, or variable-length character data. All types are returned as
// a variable length string with the numeric types converted from
// their buffer form to a (zoned) character string with trailing sign.
// For data type, pass: C = character (default)
// B = big integer
// I = integer
// P = packed numeric
// S = small integer
// V = varchar (scale 4 or 2 by default)
// Z = zoned numeric
dcl-proc GetBufferPiece export;
dcl-pi *n varchar(256);
string_buffer char(65536) options(*varsize);
piece_type char(1) const;
beg_byte_pos packed(5:0);
max_byte_len packed(3:0);
max_scale packed(2:0) options(*omit);
end-pi;
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.