Typically, when a file is created (CRTPF), it has one member with the same
name as the file. This can be overridden [MBR(*NONE)]. Also, the member
can be removed (RMVM); I do this for some files, but I create the member
that I expect to use before I open the file.
So, the thing to do is figure out *WHY* there are no members in the file. I
doubt that is a question that the list can answer; I know I cannot.
Jerry C. Adams
IBM i Programmer/Analyst
The buddy system is essential to your survival; it gives the enemy somebody
else to shoot at.
--
A&K Wholesale
Murfreesboro, TN
615-867-5070
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Mathew
Sent: Thursday, August 23, 2012 1:03 PM
To: Midrange Systems Technical Discussion
Subject: Re: Error CPF4102
I just checked with DSPFD the number of members is Zero.
Does this mean the file has no members in it.
Please suggest.
________________________________
From: "rob@xxxxxxxxx" <rob@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, 23 August 2012 11:22 PM
Subject: Re: Error CPF4102
More likely this means the whole file is missing. In that joblog, if you
press F1 on that message, it should display the reason code. That will help
more. It may also say something like "if the member name is *N then...".
From a command line you can also try
DSPFD FILE(XX10176485/C050812)
If that fails then it's because of one (or more) of these reasons:
- The library does not exist.
- You do not have access to the library
- The file does not exist
- You do not have access to the file
- You had a typo
If that works, then go to the bottom and it will list the members contained
in the file.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com/
From: John Mathew <johnmathew400@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>,
Date: 08/23/2012 01:42 PM
Subject: Re: Error CPF4102
Sent by: midrange-l-bounces@xxxxxxxxxxxx
As Rob and others suggested.
I took GO TECHHELP and followed the steps.
Below is the error message I am getting.
File C050812 in Library XX10176485 with member *N not found.
Error message CPF4102 appeared during OPEN for file JJJJABCJ
Does this mean there are NO Members in a File and program is processing
with a members?
Thanks in advance
________________________________
From: "rob@xxxxxxxxx" <rob@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, 23 August 2012 8:55 PM
Subject: Re: Error CPF4102
First, when the job is running look at the joblog. Some simple steps:
GO TECHHELP
1. Display messages for the system operator
position to message
Press F1
F9=Display message details
From job . . . . . . . . . . . : MYJOB
User . . . . . . . . . . . . : MYUSERID
Number . . . . . . . . . . . : 985827
Then, from a command line, do:
DSPJOBLOG JOB(985827/MYUSERID/MYJOB)
You should see the message CPF4102 in full context.
To see it out of context you can do
DSPMSGD CPF4102
File &2 in library &3 with member &4 not found
Basically, you're missing one of these three
- a member within a file
- the whole file itself
- the whole library
How to resolve this will depend on your application developer.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.