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




Thanks Leif, the associated space information is useful.

I I think I answered my own question.  I just found some old notes that I
think show how the system knows the target program language type.  Run the
MI code below to get the language type into field "LANGUAGE".  You'll first
have to resolve the system pointer "?POINTER" to some ILE program that has
a PEP.

If the target program is ILE RPG, the language type will be X"00170002".
If the target program is ILE C, the language type will be X"00050000".
Hmm, maybe this is how the ILE debugger determines which debugging commands
"flavor" to allow.  I tried playing with language types other than
X"0170002" and X"00050000", and the ILE debugger said such a program can't
be debugged!

DCL SYSPTR ?PROGRAM   AUTO;
DCL DD     LANGUAGE   AUTO CHAR(4);

DCL SPCPTR ?TEMPLATE  AUTO INIT(TEMPLATE);
DCL DD     TEMPLATE   AUTO CHAR(48) BDRY(16);
DCL DD     *          DEF(TEMPLATE) POS(1) BIN(4) INIT(48);
DCL DD     *          DEF(TEMPLATE) POS(9) BIN(4) INIT(1);
DCL SPCPTR *          DEF(TEMPLATE) POS(17) INIT(RECEIVER);
DCL DD     OPTIONS    DEF(TEMPLATE) POS(33) CHAR(8);
DCL DD     MODULENO   DEF(TEMPLATE) POS(41) CHAR(4);

DCL DD     RECEIVER    AUTO CHAR(512);
DCL DD     *           DEF(RECEIVER) POS(1) BIN(4) INIT(512);

CPYBLA     OPTIONS,   X"0000800000000000";
MATBPGM    ?TEMPLATE, ?PROGRAM;
CPYBLA     MODULENO,  RECEIVER(65:4);
CPYBLA     OPTIONS,   X"0000000080000000";
MATBPGM    ?TEMPLATE, ?PROGRAM;
CPYBLA     LANGUAGE,  RECEIVER(401:4);
BRK "LOOK";

+---
| This is the MI Programmers Mailing List!
| To submit a new message, send your mail to MI400@midrange.com.
| To subscribe to this list send email to MI400-SUB@midrange.com.
| To unsubscribe from this list send email to MI400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: dr2@cssas400.com
+---

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.