Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping Files Opened in RPGIII

Status
Not open for further replies.

cannautt

MIS
Mar 26, 2002
2
0
0
IT
Hi everybody.

I'm developing for a customer an utility in RPGIII which accesses to several files. This ustility is an RPG program that will be called by many other programs. The problem is this: this utility will be called iterately many times(up to 100,000) even by the same program. Is there a method not to open the files used by the utility all the times, in order to improve performances?

Thanks for your help
 
cannautt,

In RPGIII you could not set on *INLR. This would leave the files open. You must be careful though as the variables are NOT initialized the next time the program is called. You must take care to clear everything yourself at program start up.

HTH,
MdnghtPgmr
 
Thanks everybody.
Your suggestions have been very useful.

Bye
 
Hi,


I'm not sure, but if you end your programm with the "Return" instruction, the file stay opened.

Also, don't let the system to open and close files for you. The "open" and "close" allow uou to keep files opened.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top