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


  • Subject: Re: API parameter lengths
  • From: "Leif Svalgaard" <leif@xxxxxxxx>
  • Date: Mon, 9 Jul 2001 11:05:14 -0500

From: <Gene_Gaunt@reviewworks.com>
> Simon wrote:
> "The CALL command is looking at the target program and NULL terminates the
> string because that is probably what a C program expects."
>
> Well if the CALL command processing program can do that, then how do you
> make an MI program determine if a target program is ILE C?

several approaches, maybe the easiest is to check the associated primary
space
for the program. If the program is a bound ILE program the assoc.
space contains the so-called BNAS information.which includes the program
"attribute" which will be "CLE" for the case in point. Resolve a system
pointer
to the program (you have to that anyway to call it), then SETSPPFP a space
pointer from the system pointer and look at what you get. The place where
the attribute is stored will be in a "record" starting with x'01000000
00010002'
which may be preceded by a x'01000000 00010001' record you have to skip.
Offset x'C' points to the x'01000000 00010001' record, at offset x'C' in that
record points to the x'01000000 00010002' record and the attribute is offset
x'102'.



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

Replies:

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.