|
User Controlled Open (USROPN) gives you the ability to avoid having RPG IV automatically open the file for you, using the RPG cycle. Service program do not have an RPG Cycle embedded in them. The ability to use the OPEN and CLOSE operation codes has nothing to do with the USROPN keyword. A file could be opened outside of the program or in your case, Service program. Bob Cozzi cozzi@rpgiv.com Visit the on-line Midrange Developer forum at: http://www.rpgiv.com > -----Original Message----- > From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com] On > Behalf Of Andrew Lutz > Sent: Thursday, March 07, 2002 1:49 PM > To: rpg400-l@midrange.com > Subject: Re: SRVPGM: USROPN file or not > > Would you ever want to close the file? > > If the answer is yes, then USROPN is the way to go. > > > > Andrew Lutz > Database Administrator > (916) 851-7140 > alutz@pmigroup.com > > > >>> marcin.drozdowski@big.pl 03/07/02 11:40AM >>> > Procedure in my SRVPGM is called frequently, both from batch (server) > and interactive jobs. RPGLE programs are running in named activation group. > IMHO it's good idea _not_ to declare files in SRVPGM with USROPN, but > compiler says: "Files should be closed explicitly when NOMAIN is > specified on the Control specification". > The message has severity 10 and SRVPGM is created. > Will it have any bad influences? > > Thanks for advice. > Marcin Drozdowski > > > _______________________________________________ > 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. > > > _______________________________________________ > 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.
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.