|
I don't use any variables that make the same sound as my program.michaelrtr@xxxxxxxxx 12/08/2009 10:43:14 AM >>>
There are APIs you can use to get the current size of the user space.the
However, user spaces are often "padded" (i.e. you tell it to make the
user space 1000 bytes, but the system makes it 4000 bytes and leaves
remaining 3000 bytes empty) therefore I don't recommend thisapproach.
You should keep track of the length of your user space somehow. This
can be data that you store inside the user space itself, or it can be
data that your program "remembers" from when it populated the space.
But either way, I would recommend that your program manage that length
rather than expecting to retrieve it from the OS.
Incidentally, the article you started with (from the looks of it) was
something I wrote. I don't know anyone else that uses variables named
'Kaboom' :)
Mike wrote:
How would one calculate the size if I didn't have that number? Readthrough
the user space and add up all of the characters?--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
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.