× 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.



AUTO or STAT, same bug.

This seems a bug to me: the MATAGPAT option X"02" on V5R1 doesn't honor the
template value I specify in position 1-4 (the "number of bytes provided for
materialization").  Instead MATAGPAT returns the entire list of program
activations, clobbering my storage after my template declaration.

dcl dd     Template    auto char(8192);
dcl dd     *           def(Template) pos(1) bin(4) init(64);
dcl dd     Test        def(Template) pos(65) char(16) init("THIS IS A
TEST");
dcl spcptr ?Template   auto init(Template);

matagpat ?Template, GroupMark, X"02";

/* this instruction returns more than 64 bytes                   */
/* variable "Test" is now clobbered with activation list entries */



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.