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



Hi
I want to update records in subfile which is having thousands
records(lessthan 10k)..(reading this records is done in single
page)...please suggest me which subfile is good
(loadall/expand/single page)to update and at the same time i
should lock the records without giving chance to others to
update...how can i lock the records?
best Regards
Murali


On Mon, 14 Oct 2002 Joe Pluta wrote :
> From: Reeve Fritchman
>
> I think a subfile is an extension of workstation support.  But
there's no
> reason that you can't build a subfile in a batch program as
long as you
> don't display a format (i.e. workstation device).  You should
be able to
> load/clear, load, and READC (I think) a subfile in batch...but
why now use
> an array with a data structure?  Seems like it would be less
overhead...

I think this is true only in very specific cricumstances, Reeve.
While I
haven't specifically tried it, I don't think you can write to the
subfile
unless the display file is open.  And I do know that you cannot
open a
"normal" display file in batch.  However, there is one
possibility.  You may
be able to open the display file if you create it with
DEV(*NONE).  However,
once you've gone so far as to create a display file just for the
purposes of
storing and sorting temporary data, you're right: you should
probably use an
array, or even a temporary file.

Joe

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

__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/



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.