× 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'm getting dubious results with MATCTX after upgrading to V5R2:

DCL DD     RECEIVER    AUTO BDRY(16) CHAR(256);
DCL DD     PROVIDED    DEF(RECEIVER) POS(1) BIN(4);
DCL DD     AVAILABLE   DEF(RECEIVER) POS(5) BIN(4);
DCL SPCPTR ?RECEIVER   AUTO INIT(RECEIVER);
DCL DD     X           AUTO BIN(4);
DCL DD     Y           AUTO BIN(4);

CPYNV   PROVIDED, 96;
MATCTX  ?RECEIVER, *, X'0500000000';
SUBN    X, AVAILABLE, 96;
DIV(S)  X, 32;          /* X = number of objects in machine context */

CPYNV   PROVIDED, 97;
MATCTX  ?RECEIVER, *, X'0500000000';
SUBN    Y, AVAILABLE, 96;
DIV(S)  Y, 32;          /* Y = number of objects in machine context */

BRK     "LOOK";
PEND;

I would expect either of these MATCTX's to calculate the same number of
objects in the machine context.

However, the debugger shows X=1203, and Y=722.

Why are X and Y unequal, depending if PROVIDED is 96 or not?

(By the way on V5R1 they are equal; on V5R2 they are unequal.)


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.