Results 1 to 4 of 4

Thread: Error message CPF4101 appeared during OPEN for file

  1. #1
    Experienced Forum Member
    Join Date
    Jan 2007
    Location
    india
    Posts
    67
    Rep Power
    636

    Error message CPF4101 appeared during OPEN for file

    Hi
    I am getting Error message CPF4101 appeared during OPEN for file when i am calling the RPGLE program in two different sessions.As soon as i came out from the display file from the first session, in the second session program can able to access the same file.

    Regards
    Naveen

  2. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Posts
    1,000,000
     

  3. #2
    Analyst Zdenko's Avatar
    Join Date
    Jun 2005
    Location
    Ziri, Slovenia
    Age
    57
    Posts
    195
    Rep Power
    1172

    Re: Error message CPF4101 appeared during OPEN for file

    Hi

    On errmsg press F1 and You will get low level msg with reason codes and
    meanings.
    LP Zdenko

  4. #3
    Analyst ReachKrishna's Avatar
    Join Date
    Mar 2005
    Location
    India
    Age
    32
    Posts
    198
    Rep Power
    1122

    Re: Error message CPF4101 appeared during OPEN for file

    CPF4101 is a file not found error.

    So check if the actual file is present in the corresponding library and if so also check if the library is in the library list.
    Regards,
    KR

  5. #4
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12605

    Re: Error message CPF4101 appeared during OPEN for file

    seems like an odd message if you can see/use the file on one session but not
    the other ...I would expect some kind of record locking error.

    What IBM Says:
    When doing a full system recovery, either in a disaster or a test, users might receive the following messagesafter QUSRSYS is restored as part of the*ALLUSR :

    CPD0C23 - Library &5 not found.
    BRM1992 - Media monitor was not active during processing of volume &1.
    CPF4101 - File xxxxx in library QUSRBRM not found.
    MCH3401 - Cannot resolve to object QYPPOC370C. Type and Subtype x'0203'.

    The message text for CPF4101 is:

    Message . . . . : File QA1ASP in library QUSRBRM not found or inline data file missing.

    Cause . . . . . : The file was not opened. The reason code is 01. The reason codes and their meanings are as follows:
    01 - The library does not exist.
    02 - The file does not exist. The library does exist.
    03 - The file does not exist. The library specified as *LIBL.
    04 - The file was saved with storage freed.

    This is because BRMS is installed on the system and when QUSRSYS is restored, the exit points are restored. Because BRMS adds programs to the exit points, further use of the tape drive will fail.

    Users have the following options to prevent this:

    Option 1

    Before restoring *ALLUSR or QUSRSYS, restore libraries QBRM, QMSE, and QUSRBRM.

    Note: Libraries QBRM and QMSE might have been restored already if aRSTLIB LIB(*IBM) has been run.

    Option 2

    Do WRKREGINF and remove the programs from the following exit points:

    QIBM_QTA_STOR_EX400 EX400300
    QIBM_QTA_TAPE_TMS TMS00200

    After the restore is complete, run INZBRM OPTION(*DATA) . This will add the programs back to the exit points.








    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

  6. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Age
    21
    Posts
    1,000,000
     

Facebook Comments


Similar Threads

  1. cpf4101
    By sateeshs in forum RPG/RPGLE
    Replies: 10
    Last Post: August 6th, 2011, 11:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •