Page 1 of 1
CPF4103 - Device *REQUESTER not found while opening file
Posted: Mon Dec 13, 2010 5:24 pm
by sgonchigar
am getting this CPF4103 - Device *REQUESTER not found while opening file, when opening a 132*27 display. Any clue?
Thank you,
Re: CPF4103 - Device *REQUESTER not found while opening file
Posted: Tue Dec 14, 2010 11:52 am
by David
The CPF4103 indicates that the program is not compiled using either the Profound UI RPG Preprocessor or IBM Open Access.
When not compiled using either of these, the system will send the CPF4103 error when the RPG program tries to open the WorkStn file in the job because the job is batch and there is no workstation device.
Are you using IBM Open Access or the Preprocessor? Let me know and I can advise on compile procedures.
Re: CPF4103 - Device *REQUESTER not found while opening file
Posted: Tue Dec 14, 2010 12:37 pm
by sgonchigar
I am using Preprocessor and used the following to compile
PROFOUNDUI/PUISQLRPGI OBJ(testui) COMMIT(*NONE)
The compile was successful. Should I be doing anything different with the compile options? Thank you.
Re: CPF4103 - Device *REQUESTER not found while opening file
Posted: Tue Dec 14, 2010 1:49 pm
by David
There are a few things to check when compiling with the preprocessor:
1. You must have a compiler directive /DEFINE PROFOUNDUI in the source code. You'll want to put this at the top of your source member.
2. In Profound UI versions prior to 2.2.0, you also need to supply the source file library on the command (not source file in *LIBL). If you have 2.2.0, you can use *LIBL for the source file.
Either of those 2 above would cause the Preprocessor to pass through directly to CRTSQLRPGI without doing anything. That would give you the CPF4103.
Does this help?
Re: CPF4103 - Device *REQUESTER not found while opening file
Posted: Tue Dec 14, 2010 2:42 pm
by sgonchigar
Thank you for the quick response.
1. I have the /DEFINE PROFOUNDUI at the top of the pgm.
2. If I compile with
PROFOUNDUI/PUISQLRPGI OBJ(testui) SRCFILE(testlib/QRPGLESRC) COMMIT(*NONE), the /include 's are not translated/interpreted well and I get compilation errors. Some of the /include's has /define,/copy.....nested. There are 4 /INCLUDE's,only the 1st two are expanded in the spool file and the rest are ignored.
If I compile without SRCFILE, QTEMP/QSQLTEMP1 is picked up and compiles successfully.
Re: CPF4103 - Device *REQUESTER not found while opening file
Posted: Tue Dec 14, 2010 2:51 pm
by sgonchigar
Finally, just to get clean compile with SRCFILE, I had to do the following:
1. removed 3 /include's that were nested and causing problem for preprocessor.
2. I had declared "ScreenIndicators", with an "S" at the end but preprocessor truncated the "S" and was getting RNF7030. I renamed the field without the "S" and it compiled ok.
QrnOpenAccess_T.indara = %Addr(SCREENINDICATOR);
Re: CPF4103 - Device *REQUESTER not found while opening file
Posted: Tue Dec 14, 2010 6:35 pm
by David
I'm glad it's working for you now, but sorry that you had to make modifications to make it work. It should have taken care of those /COPY's for you. If you'd like to open a support ticket, please send source members to:
support@profoundlogic.com
Our support team can look into this to see why it didn't compile properly to begin with.