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



Hello, Tom:

Yes, a space is a space is a space.  I frequently use User Space objects as
receiver variable on APIs.   This is done by supplying the address of the
first byte of the *USRSPC as your receiver value.  As you wondered, this
works a treat because of SLS.
--
ki o tsukete.

Qiu Min & Dennis Lovelady
dennis@lovelady.com
--
"I always keep a supply of stimulant handy in case I see a snake -- which I
also keep handy."
        - W.C. Fields

----- Original Message -----
From: <thomas@inorbit.com>
To: <mi400@midrange.com>
Sent: Friday, August 31, 2001 3:45 PM
Subject: RE: [MI400] List APIs and addresses


Phil:

I.e., what's the likelihood of an arbitrary API acting differently depending
on whether that first address points specifically to allocated memory or to
a *USRSPC object? At first glance, given single-level storage, etc., it
seems there'd be no difference (assuming proper authorities are granted,
etc.). But that gets to a level that's beyond me. Hence, the question to the
MI list.

Tom Liotta

On Thu, 30 August 2001, "Hall, Philip" wrote:

> > Q1. Should I be able to create a *USRSPC of some large size,
> > initialize the space to a value such as X'00' at creation,
> > retrieve a pointer to it and then pass the pointer to
> > QabcListAPI as if it were the address of a program variable?
> > After the API call, I could then access the list data via a
> > based variable in multiple other programs.
>
> There is an API to get the pointer to a usrpsc, using this will work at
any
> seclvl

--
Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788
Fax  253-872-7904
http://www.400Security.com


___________________________________________________
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/




_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/mi400
or email: MI400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.




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.