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



If you retrieve the pointer to the start of the user space, you can
easily 'write' data to it by tying a structure to that pointer.

Assuming the pointer to the start of the user space is USPPTR;

MyData  DS              Based(UspPtr)
  Field1                10A
  Field2                20A


By populating Field1 and Field2, you have stored that data in the user
space at location UspPtr.

You can then add to UspPtr (example: UspPtr += %SIZE(MyData)) - and you
are now at a new location in memory and can store more data. Just base
variables on your user space pointer, increment it, and you are in
effect 'writing data'.


Hope that helps

Jim Wiant
Developer
Foodstuffs, Akl. Ltd.



 
 
Fast is fine, but accuracy is everything. 
Earp, Wyatt


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, 6 December 2006 11:42
To: rpg400-l@xxxxxxxxxxxx
Subject: user space


Does anybody has a sample program that write data to user space?  I've
written several apps to retrieve data from it but has never try to write
data to it. 
 
Did a bit research and it seems like QUSCHGUS is the only api that allow
me to change the data in user space.  If that is the case, how does the
user space header get formatted?  How can QUSCHGUS api guarantee each
entry in the user space are the same length (There is a field in the use
space header that tells you the entry size ==> I'm, therefore, assuming
that each entry in the user space must have the same size.)?
 
 

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.