Getting msg CPF4103 during OPEN for file HELLOWORLD

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
drp2thehill
Profound User
Posts: 23
Joined: Wed Aug 04, 2010 3:58 pm
First Name: Phillip
Last Name: Knox
Company Name: Lone Star Transportation, LLC
Phone: 817-230-0266
Address 1: 1100 Northway Dr.
City: Ft Worth
State / Province: Texas
Zip / Postal Code: 76131
Country: United States
Contact:

Getting msg CPF4103 during OPEN for file HELLOWORLD

Post 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.
RussCraig
Profound User
Posts: 62
Joined: Wed May 05, 2010 10:13 am
First Name: Russell
Last Name: Craig
Company Name: Applied Business Services
Phone: 252-482-7666
Address 1: 617 Soundside Rd
City: Edenton
State / Province: North Carolina
Zip / Postal Code: 27932
Country: United States
Location: Edenton, NC
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post 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
There are 10 types of people in this world: Those who understand binary and those who don't.
drp2thehill
Profound User
Posts: 23
Joined: Wed Aug 04, 2010 3:58 pm
First Name: Phillip
Last Name: Knox
Company Name: Lone Star Transportation, LLC
Phone: 817-230-0266
Address 1: 1100 Northway Dr.
City: Ft Worth
State / Province: Texas
Zip / Postal Code: 76131
Country: United States
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post 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')"
RussCraig
Profound User
Posts: 62
Joined: Wed May 05, 2010 10:13 am
First Name: Russell
Last Name: Craig
Company Name: Applied Business Services
Phone: 252-482-7666
Address 1: 617 Soundside Rd
City: Edenton
State / Province: North Carolina
Zip / Postal Code: 27932
Country: United States
Location: Edenton, NC
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post 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
There are 10 types of people in this world: Those who understand binary and those who don't.
drp2thehill
Profound User
Posts: 23
Joined: Wed Aug 04, 2010 3:58 pm
First Name: Phillip
Last Name: Knox
Company Name: Lone Star Transportation, LLC
Phone: 817-230-0266
Address 1: 1100 Northway Dr.
City: Ft Worth
State / Province: Texas
Zip / Postal Code: 76131
Country: United States
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post by drp2thehill »

Thanks, will give it a whirl
RussCraig
Profound User
Posts: 62
Joined: Wed May 05, 2010 10:13 am
First Name: Russell
Last Name: Craig
Company Name: Applied Business Services
Phone: 252-482-7666
Address 1: 617 Soundside Rd
City: Edenton
State / Province: North Carolina
Zip / Postal Code: 27932
Country: United States
Location: Edenton, NC
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post 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.
There are 10 types of people in this world: Those who understand binary and those who don't.
drp2thehill
Profound User
Posts: 23
Joined: Wed Aug 04, 2010 3:58 pm
First Name: Phillip
Last Name: Knox
Company Name: Lone Star Transportation, LLC
Phone: 817-230-0266
Address 1: 1100 Northway Dr.
City: Ft Worth
State / Province: Texas
Zip / Postal Code: 76131
Country: United States
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post by drp2thehill »

I don't see any /INCLUDED code
drp2thehill
Profound User
Posts: 23
Joined: Wed Aug 04, 2010 3:58 pm
First Name: Phillip
Last Name: Knox
Company Name: Lone Star Transportation, LLC
Phone: 817-230-0266
Address 1: 1100 Northway Dr.
City: Ft Worth
State / Province: Texas
Zip / Postal Code: 76131
Country: United States
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post by drp2thehill »

did what you said and got the /INCLUDED code and it worked, thanks RussCraig
RussCraig
Profound User
Posts: 62
Joined: Wed May 05, 2010 10:13 am
First Name: Russell
Last Name: Craig
Company Name: Applied Business Services
Phone: 252-482-7666
Address 1: 617 Soundside Rd
City: Edenton
State / Province: North Carolina
Zip / Postal Code: 27932
Country: United States
Location: Edenton, NC
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post by RussCraig »

Hooray that it works now! Which method did you get to work?

Thanks.
-RC
There are 10 types of people in this world: Those who understand binary and those who don't.
drp2thehill
Profound User
Posts: 23
Joined: Wed Aug 04, 2010 3:58 pm
First Name: Phillip
Last Name: Knox
Company Name: Lone Star Transportation, LLC
Phone: 817-230-0266
Address 1: 1100 Northway Dr.
City: Ft Worth
State / Province: Texas
Zip / Postal Code: 76131
Country: United States
Contact:

Re: Getting msg CPF4103 during OPEN for file HELLOWORLD

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests