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



I have the following file defined in a procedure:
dcl-f InvErrP Usage( *Output ) Qualified Static;

I was looking at the job using this file and I noticed it's not blocking the output.

Member/ Record File I/O ----Open--- Relative
File Library Device Format Type Count Opt Shr-Nbr Record
INVERRP TA9LIB INVERRP INVERRF PHY 1215 O NO 1215

Sure, in this case it's not exactly a high volume file, but I feel I might learn something here.
I then modified the above InvErrP declaration to include Block(*Yes), but it didn't help.

I also have another procedure with the same file defined locally as input.
dcl-f InvErrP Qualified UsrOpn;
This procedure calls the one with the static output file define telling it to close the file before this one opens the file.

Is having two separate entries doing something to the automatic blocking detection in the RPG compiler? Or is there something else I'm missing?

I was referencing this page (sorry no ibm.biz link):
http://www-01.ibm.com/support/knowledgecenter/SSZND2_6.0.0/com.ibm.etools.iseries.pgmgd.doc/c0925076290.htm
This link of course talks about the program as a whole and globally defined files so I don't know how to apply this to a program using local files. Because in my case the two declarations of InvErrP are completely separate access paths so one being input and the other being output shouldn't prevent the two of them from blocking.

Thanks for your input. I'm on IBM i 7.2.

Kurt Anderson
Sr. Programmer/Analyst - Application Development, Service Delivery Platform
[cid:image002.jpg@01CD16F9.25D27630]
web: www.customcall.com<http://www.customcall.com/> | email: kanderson@xxxxxxxxxxxx<mailto:kanderson@xxxxxxxxxxxx>

A Division of Enghouse Systems Ltd.<http://www.enghouse.com/> (TSX:ESL)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.