× 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: Basing Pointers
  • From: leif@xxxxxxx
  • Date: Fri, 21 May 1999 04:49:58 -0500

I do not wish to beat a dead horse too much, but what does the
SETSPP MI-instruction do? It assigns an address to a pointer variable.
If you were talking about assigning an address to (say) a character
variable, that is - of course - not only impossible, but also meaningless.
I did not appreciate that we were discussing the meaningless, mea culpa.

You can 'cheat' as in:
DCL DD CHAR-VAR CHAR(16) BDRY(16);
DCL SPCPTR PTR-VAR DEF(CHAR-VAR) POS(1);
DCL DD XX BIN(4);
SETSPP PTR-VAR, XX;
now the CHAR-VAR contains the 'address' of the variable XX.

I agree that SETSPP CHAR-VAR, XX cannot be done,  but as I said
that is meaningless in itself. You can cheat though.

> Jon Paris and I stated categorically that assigning an address to a
> variable on the fly could not be done - not even in MI . And we're
> right. Read back over the thread - modifying the address stored in a
> basing pointer was not the issue in question and we indicated this could
> be done in ILE RPG etc too.
> > 
> > Yeah, that is what I thought too. Somebody in this list categorically
> > stated that it could not be done, not even in MI.
> > Below is the standard way of doing I/O in MI using the SEPT.
> > Note how the ADDSPP instruction modifies the basing pointer:


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.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.