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



Interesting... must be use case specific.

Like I said for my template....
First call = Open files, etc. (USROPN & STATIC keywords used on DCL-F)
Subsequent calls = Do something real
Final call = Close files, etc.

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jon Paris
Sent: Monday, October 11, 2021 3:10 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Can files be opened local to a "subprocedure"?

Glad to hear you can use it. IN most cases I found the open/close penalty too heavy.


Jon

On Oct 11, 2021, at 6:25 PM, James H. H. Lampert via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

On 10/10/21 3:42 AM, Jon Paris wrote:
It is perfectly possible to have subprocedures with local files. In fact it is the only way yo get true recursion in a file handling subproc.

It works!

It breaks pre-V6 compatibility on the application it's in, but then again, we haven't had anybody using this application on pre-V6, ourselves included, and indeed, I don't know if we even have anybody other than ourselves still using QuestView on pre-V6.

--
JHHL
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=04%7C01%7C%7C882d9713f73e4a9445c208d98d03d566%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637695869867452894%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=rYkyuiUfjvbckMLOWO%2BvQK6AE8QFrtR8qJ5U800hB5w%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=04%7C01%7C%7C882d9713f73e4a9445c208d98d03d566%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637695869867462845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2F65QIiw9Ky7DvXczQLbcEpvx7Pz3yBPxAgNPDHY3fHA%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=04%7C01%7C%7C882d9713f73e4a9445c208d98d03d566%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637695869867462845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=VGBtlO8wYxuZfdC2uoTqld6701Yc48m2gBQxp8i4Er8%3D&amp;reserved=0


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.