Page 1 of 1

Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 12:46 pm
by drp2thehill
Can't seem to figure out why my 'HELLOWORLD' RPG program can't find the display file 'HELLOWORLD'. I'm compiling with RPGSP. Thanks, Phil


Message Id: RNX1216
Severity: 99
Date: 2010-08-05
Time: 11.34.44
Program: HELLOWORLD
Procedure: HELLOWORLD
Line(s): 1000001
Message:
Error message CPF4103 appeared during OPEN for file HELLOWORLD.
Cause . . . . . : RPG procedure HELLOWORLD in program KNOP/HELLOWORLD received the message CPF4103 while performing an implicit OPEN operation on file HELLOWORLD. The actual file is KNOP/HELLOWORLD.

Recovery . . . : Check the job log for a complete description of message CPF4103, and contact the person responsible for program maintenance. If the file has a device type of SPECIAL, there may be no message in the job log.

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 1:10 pm
by RussCraig
What OS are you running? Also you need to compile using the ProfoundUI compile commands, I don't believe the RPGSP compile commands would work for ProfoundUI (if there are ones specifically for RPGSP, I don't have that package).

V5R3/V5R4:
- Make sure you have DFTACTGRP(*NO) in the H spec
- Make sure you have /DEFINE PROFOUNDUI in the H spec
- Sometimes you have to use the EXTFILE keyword on the display file F spec to get it to compile. e.g.: EXTFILE('YOURLIB/YOURDISPLAYFILE')
- Be sure to compile using the PUIBNDRPG command with the DEFINE(PROFOUNDUI) parameter
- You can also use the ProfoundUI Exit Points to replace your default compile commands, this is documented in the Getting Started Guide.

v6.1/7.1:
- Same as above unless you have RPG Open Access
- If you have RPG OA, add the following F spec keyword to your display file: HANDLER(‘PROFOUNDUI(HANDLER)’)
- If you use the HANDLER, then you can compile using normal PDM commands


General:
- Make sure you have PROFOUNDUI in your library list
- Make sure you have the library with your ProfoundUI display file and program in your library list


Hope this helps.
-RC

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 1:18 pm
by drp2thehill
ProfoundUI Getting Started Guide - Configuring the RPG compiler page 16:

"e. Developing with RPGsp
RPGsp is Profound Logic’s rapid RPG-CGI Web Application and AJAX
Development Tool. If you are using the latest version of RPGsp as your
RPG editor, it will automatically detect Profound UI programs when the
compile option is selected. You must ensure that PROFOUNDUI is in
your compile-time library list."

I have all this set.

I've done all this:

"- Make sure you have DFTACTGRP(*NO) in the H spec
- Make sure you have /DEFINE PROFOUNDUI in the H spec
- Sometimes you have to use the EXTFILE keyword on the display file F spec to get it to compile. e.g.: EXTFILE('YOURLIB/YOURDISPLAYFILE')"

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 1:32 pm
by RussCraig
Hmm, seems it should work for you then. I'm assuming you compiled the display file using the Visual Designer instead of PDM? That would be the only other thing I can think of.

If you're not using any RPGSP logic in your program, try using the PUI compile commands. Give this a shot, type this in your command line and prompt (F4) it: PUIBNDRPG DEFINE(PROFOUNDUI). Then fill in your values like normal and compile.

If you are using RPGSP logic in your program, then I *believe* the PUI compile commands will recognize it, as pretty much all Profound Logic software intermixes nicely. I could be wrong though, don't quote me on that :-P

Hope that helps.
-RC

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 1:45 pm
by drp2thehill
Thanks, will give it a whirl

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 1:48 pm
by RussCraig
Also, when you compile, do you see all the /INCLUDED ProfoundUI code in your compile report? There should be quite a bit added.

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 1:57 pm
by drp2thehill
I don't see any /INCLUDED code

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 2:13 pm
by drp2thehill
did what you said and got the /INCLUDED code and it worked, thanks RussCraig

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 2:14 pm
by RussCraig
Hooray that it works now! Which method did you get to work?

Thanks.
-RC

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Posted: Thu Aug 05, 2010 4:56 pm
by drp2thehill
The PUIBNDRPG DEFINE(PROFOUNDUI) line you suggested. I finally got the RPGsp to work after consulting with Rob. I had to capitalize my '/DEFINE' H spec like this:
'h/DEFINE profoundui'. Thanks again for your assistance. Phil