Well it is slightly better than "An error has occurred."
Â
Don Brown
Senior Consultant
Â
[1]OneTeam IT Pty Ltd
P: 1300 088 400
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
David Gibbs via MIDRANGE-L
Sent: Wednesday, 24 September 2025 11:58 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: David Gibbs <david@xxxxxxxxxxxx>
Subject: Internal error compiling open clp source file on ifs
Folks:
File this in the FYI category.
I wrote a java program that generates a CL source file in the IFS (using a
IFSFileWriter object). After the source is generated, it invokes the
CRTBNDCL command to compile the source.
I encountered a problem where I got a CPFAC05 - Internal error in program
QCLSTMF. Return code 7 error.
The odd thing was, I could compile the source from a green screen session
without a problem.
After a bit of digging, I discoveredI wasn't closing the IFS file in the
java program before invoking the compile command.
When I added a close to the IFS File writer object, and invoked the
compile command, it worked fine.
An understandable issue, but maybe the message could be clearer.
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
I'm riding in the American Diabetes Association's Tour de Cure to raise
money for diabetes research, education, advocacy, and awareness. You can
make a tax-deductible donation to my ride by visiting
[2]
https://mideml.diabetessucks.net.
I may have diabetes, but diabetes doesn't have me!
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: [3]
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
[4]
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content
filtering.
[5]
https://www.mailguard.com.au
References
Visible links
1.
https://www.oneteamit.com.au/
2.
https://mideml.diabetessucks.net/
3.
https://lists.midrange.com/mailman/listinfo/midrange-l
4.
https://archive.midrange.com/midrange-l.
5.
https://www.mailguard.com.au/
As an Amazon Associate we earn from qualifying purchases.