ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Error messages after running program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error messages after running program

    Hello again, i've modified an existing project to meet the new requierements, but after running it i received the following errors:

    ----------
    Job 416687/TABOADAJ/GCU0006A started on 30/08/07 at 15:53:13 in subsystem MX
    Error message CPF4101 appeared during OPEN (C S D F).
    C
    RPG9001 received by CTY005C at 2200. (C D I R)
    C
    CPF9999 received by CTY001C at 2000. (C D I R)
    C
    Error message CPF4101 appeared during OPEN (C S D F).
    C
    RPG9001 received by CTY005C at 2200. (C D I R)
    C
    CPF9999 received by CTY001C at 2000. (C D I R)

    --------------------------------

    I don't have a clue of what do they mean and how to fix them... can anybody help me out?

    Thanks a lot.

  • #2
    Re: Error messages after running program

    A CPF4101 means your program is trying to open a file that is not in your library list or is overridden to a file that doesn't exist (more likely it's the former than the latter). The RPG9001 basically signals to the CL program that an error occured in the RPG program and CPF9999 basically signals to the CTY001C program that an error occured in the CTY005C program. The job log will tell you what file was not found. Check that your library list is set correctly before calling the program.
    Jonas Temple
    Got FROG?
    Got Tadpole? No, because it's not done yet! Stay tuned....

    01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

    Comment


    • #3
      Re: Error messages after running program

      Thanks for the quick response JTEMPLE, but how can i check the job blog?

      Comment


      • #4
        Re: Error messages after running program

        Goto "WRKSPLF" ... look for the output from the job. Open it up and there's what it did.

        Otherwise, if the job isn't active, you don't have an active Job "LOG" (unless you tell it to log your CL commands) (we don't have BLOG's on the Iseries)

        Comment


        • #5
          Re: Error messages after running program

          Sorry for misspelling Log and thanks for the correction.

          I don't have any files in the SPOOLED FILES list... how can i set the log flag?

          Comment


          • #6
            Re: Error messages after running program

            Usually you can do a "WrkJob " and it will show you the job information from the last time(s) it was run. Select by placing a "1' next to it then going into the information (spool file) associated to that job. But, if you've deleted any output (spool files) there might not be anything there.


            (btw .. I was just joking about the BLOG .. I figured it was a typo)

            Comment


            • #7
              Re: Error messages after running program

              If you ran the program via a "CALL PGM(xxx)" then run the command: DSPJOBLOG. Once there, press F10 to display detailed messages. The press "Page Up" until you find the initial error. Pressing F1 on any message will give you additional information about the error message.
              Jonas Temple
              Got FROG?
              Got Tadpole? No, because it's not done yet! Stay tuned....

              01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

              Comment


              • #8
                Re: Error messages after running program

                Boy, you are a FASTone!
                Jonas Temple
                Got FROG?
                Got Tadpole? No, because it's not done yet! Stay tuned....

                01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

                Comment

                Working...
                X