ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Data Not Fetching

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

  • Data Not Fetching

    Hi all,
    My requirement is i have a CL program which is calling RPG Program R1, which writes data to an Output file PF1. Now i need to Change the RPG program R1 in such way that it should write data to PF0 instead of PF1, and i need to create another RPG program R2 which reads data from PF0 and writes to PF1. Now my CL program need to call both R1 and R2 so that data get papulated to PF1 through PF0. I did every thing so that the data is getting papulated to PF0 and PF1 when i use different CL programs for each of RPG programs. But when ever i use same CL and CALL R1 then CALL R2, the data is papulating till PF0 but not PF1. How to proceed in this case?

    The error i am getting is CPF4326 for L1( L1 is logical file of PF1).
    Error message: error message CPF4326 appeared during OPEN for the file L1.

    Please help me fix the issue .. Thanks!

  • #2
    Re: Data Not Fetching

    dspjoblog, F10, look at the message by putting the cursor there and pressing F1.
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

    Comment


    • #3
      Re: Data Not Fetching

      @KrishnaAS400:

      You already have essentially the same question in this forum -- CPF4326 while using SBMJOB. Any discussion in that thread is probably the same as would be put in this thread.

      The first thing you should always do is show us the actual error message. You never showed the message in your other question; and for a while you were telling us the wrong file which made it very confusing. We know that CPF4326 is the error. Can you show us the error message this time? Copy/paste the message; don't try to type it by hand. An error in typing is trouble.
      Tom

      There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

      Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

      Comment


      • #4
        Re: Data Not Fetching

        Hi Tom,

        Thanks for your sugesstions. I will copy the error from next time onwards..

        Comment

        Working...
        X