|
Sorry - didn't answer all of your question. The 'User Space Header' is only created by certain API's - usually the 'List' APIs (QUSLOBJ - list object into user space for example). Those API's do indeed create a header of a certain format. In that case, to add some of your own data to the user space you probably should follow the entry sizes as defined by whatever API that populated the space. But if you just want to use it as a work space, you can create one, get the pointer, and add data in any format you want by tying datanames to the user space pointer as I mentioned. Again, hope it 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 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.