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



Just a question: should the SRVPGM not run in a named ACTGRP, as the PF can be accessed by different PGMs in different ACTGRPs?

And what would the perfermonce be then?

Regards,
Carel Teijgeler

Nathan Andelin schreef op 11-9-2017 om 22:57:
On Mon, Sep 11, 2017 at 2:36 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

It's not the CALL themselves that's the problem...

I'm not precisely sure what has caused such a big drag on the I/O
performance. I noted in an earlier post that runtime execution path in the
service program entails:

2 procedure calls.
2 monitor, on-error blocks.
2-3 select blocks.

before an I/O op code is invoked.

The commit keyword on the "f" spec forces the service program to run under
commitment control, which may be a factor. I didn't force that in the other
program because reading a file front to back doesn't require commitment
control.


Can't tell for sure what it is without the code, but I'd suspect
- repeated opens

No, the file is opened only once and never closed until the activation
group ends. Look at the source code.

if not %open(cusmstf);
open cusmstf;
endif;



- ACTGRP(*NEW)

No, the service program runs in the *caller activation group.



- data copying

Yes, a factor, I think.


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.