|
So Service PGM shouldn't open a file automatically, when no USROPN is specified, right? (Because it have no RPG cycle embedded) But it does, during first call. I've checked it. Marcin Drozdowski -----Original Message----- From: Bob Cozzi (RPGIV) [mailto:cozzi@rpgiv.com] Sent: Thursday, March 07, 2002 9:18 PM To: rpg400-l@midrange.com Subject: RE: SRVPGM: USROPN file or not 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 >
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.