|
What you "should do" is up to you. In service programs, the globally declared files are opened when the first subprocedure in the service program is called. They remain open until they are explicitly closed OR the service program is unloaded. Files in service programs (as with regular programs) that contain the USROPN keyword, are open by an OPEN opcode and remain open until they are explicitly closed OR the service program is unloaded. -Bob Cozzi www.iSeriesTV.com iPod your industry news instead of reading it. Coming July 18, 2006 Ask your friends to tune into iSeriesTV.com -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai Sent: Tuesday, July 18, 2006 8:47 AM To: RPG programming on the AS400 / iSeries Subject: RE: usropn files and service programs Anybody know where I can find the ibm advice mentioned below? Just curious on the reason behind it. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Knezevic.Mihael Sent: Tuesday, July 18, 2006 2:07 AM To: RPG programming on the AS400 / iSeries Subject: usropn files and service programs <clip> afaik the default advice of ibm is that files in a service program should be defined usropn. but if i open and close the files on every procedure call the batch program is really slow. </clip>
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.