×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Oh, if that's what you're trying to do... make bsearch faster than CHAIN,
then consider using a User Index. No such limitation exist for it, and you
can do a Find Index Entry (effectively a CHAIN but without the I/O overhead)
nearly as easily as a CHAIN, and certainly as easy as or easier than
bsearch.


-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Tony Carolla
Sent: Wednesday, December 28, 2005 10:53 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: User Space extent

On 12/28/05, Bob Cozzi <cozzi@xxxxxxxxx> wrote:
>
> First, switch to an IFS file and use large file support open64() and
> you'll
> solve your problem with 16MB. I thought you were reading/writing >16MB at
> a
> time. For a "throughout the day" routine should consider an IFS file as
> the
> solution.


The entries are stored in a PF throught the day.  At night, a lengthy update
procedure runs, and this file was used, via SETLL, while reading through
several files to determine if an update happened.  I thought that loading a
user space with the entries, then firing off bsearch() rather than SETLLing
each time would save time.  I am still juggling ideas for making it quick,
yet simple.

Whatever the final solution is, I would like to thank you people on the
list, because I have learned most of these techniques from you.  Years ago,
I would have just told mgt to buy a faster box ;-)


Second, the reason there is a 16MB limit that cannot be changed is because
> that code is so widely tide into OS/400 in so many places, and so
> optimized
> that if they changed it, it could break the OS.
>
> Back in the 1970s when they did this, nobody thought that one day most of
> the U.S. population would be throwing away the 16MB SD memory cards that
> came with their digital cameras, because they were too small.
> Although, now that I think about it... why was it that somebody said
> "Pointers are always too small so let's make them bigger than we'll ever
> need" and yet decided that 16MB was more memory that they would ever need.
> <g>
>
>
> -Bob Cozzi
> www.RPGxTools.com
> RPG xTools - Enjoy programming again.
>
>
> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
> On Behalf Of Tony Carolla
> Sent: Wednesday, December 28, 2005 10:14 AM
> To: RPG programming on the AS400 / iSeries
> Subject: Re: User Space extent
>
> The user space will contain updated account numbers (3A + 9P 0, combined
> into a 12A) that are collected from journal entries throughout the
> day.  The
> number of elements can climb to 400k-500k a day (cleared out each night),
> so
> I will rarely hit the ceiling (except maybe after a three-day
> weekend).  The
> reason I hit the ceiling was due to a bug I created while writing the
> program, but I wanted to know if there was a way to do the impossible, an
> 'insider trick', to bypass that 16MB limit.
>
> Interesting... It piques my curiousity why the 16MB 'knob' can't just be
> turned up... That really bytes (three times no less ;-)
>
> On 12/27/05, albartell <albartell@xxxxxxxxx> wrote:
> >
> > Just curious, what are you placing in the user space that is exceeding
> > 16MB?
> >
> >
> >
> > Aaron Bartell
> >
> >
> > -----Original Message-----
> > From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:
> rpg400-l-bounces@xxxxxxxxxxxx]
> > On Behalf Of Tony Carolla
> > Sent: Friday, December 23, 2005 3:52 PM
> > To: RPG programming on the AS400 / iSeries
> > Subject: User Space extent
> >
> > Merry Christmas again!  May the Chrismas cheer burn in deeper than the
> > screen from a 3196 console!
> >
> > I am creating a user space, set to auto-extend, and in a loop, placing a
> > 12
> > alpha value in the user space, incrementing the pointer, etc.  But as
> soon
> > as I get to 16MB, it crashes.  Is there any way to make a user space
> > larger
> > than 16mb?  If not, I guess I will have to use memory directly, but not
> > sure
> > if I want to do that...
> >
> > --
> > "Enter any 11-digit prime number to continue..."
> > "In Hebrew SQL, how do you use right() and left()?..." - Random Thought
> > "If
> > all you have is a hammer, all your problems begin to look like nails"
> > --
> > This is the RPG programming on the AS400 / 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.
> >
> > --
> > This is the RPG programming on the AS400 / 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.
> >
> >
>
>
> --
> "Enter any 11-digit prime number to continue..."
> "In Hebrew SQL, how do you use right() and left()?..." - Random Thought
> "If all you have is a hammer, all your problems begin to look like nails"
> --
> This is the RPG programming on the AS400 / 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.
>
>
>
>
> --
> This is the RPG programming on the AS400 / 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.
>
>


--
"Enter any 11-digit prime number to continue..."
"In Hebrew SQL, how do you use right() and left()?..." - Random Thought
"If all you have is a hammer, all your problems begin to look like nails"

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