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



Thank you again Scott. I compared the V5R4 & V7R1 versions too and found
out the same thing. The Optimal Alignment is default in 7.1 but not in 5.4.

I would love to know more about using teraspaces. Could you please share
some link, documentation or examples for that?


On Thu, Aug 22, 2013 at 5:51 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

You can report this to IBM as a bug if you like.... IBM should not have
broken compatility w/V7R1.

But, I know that they changed the way stuff works with 6.1 to optimize
many things... So now that you've made me curious, I took a quick look
at the docs, and I see the following note:

Note: If not using the optimum space alignment, the user space
has a maximum size of 16MB minus 512 bytes (16,776,704 bytes).
If optimum alignment is specified, the maximum size of the
user space is 16MB minus one disk page (current page size is 4096
bytes, giving a maximum space size of 16,773,120 bytes).

This is from the following page:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/apis/quscrtus.htm

Elsewhere on that page, you'll see that there is a parameter where you
can specify whether you want to have (or not have) optimum alignment. It
is an optional parameter that you are not passing.

According to the docs, if that parameter is not passed on V5R4, the
default is 0 (non-optimum alignment). On V6R1, it's 1 (optimum
alignment).

Obviously, this means that if you do not pass the parameter, it'll run
faster on 6.1, but the maximum size will be 4096 bytes smaller.

Personally, if I truly need a large size, I'd use teraspace (as I said
before), this allows for a MUCH larger size, so would be great.

But, if 16773120 will work, you might just use that. I can't imagine
the 4k matters too much to you, does it?


On 8/22/2013 4:10 PM, Shubhadeep Roy wrote:
Hi Scott,

I have never worked with teraspace allocation and honestly do not know
how
to do that. As per the IBM API manual, the Initial Size parameter can
have
a value from 1 to 16776704 and that is what I have used. The purpose of
the
utility is to read through any data queue (keyed/non-keyed) and store the
contents in a SQL table and also clear the messages from the data queue,
if
the user so chooses. This works absolutely fine in V5R4, I have tested
this
with various queues in different libraries and also on different systems.

If you could point me to an alternative/better way to do this, I would be
grateful.

Thanks.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





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.