Menu

#1 CPF4102 with the CMD but call to CL program is OK.

1.0
closed
None
2017-03-23
2017-03-13
No

Hi nice product.
I could not get the CMD to run but from the CL I was able to execute with no problem.
My CMD syntax resulted in: CVTRPGFREE FROMMBR(WWITEMS) FROMFILE(JMJ/QRPGLESRC) TOFILE(XAN4JMRS2/QRPGLESRC) TOMBR(WWITEMS_FF) . It failed with
Cause . . . . . : RPG procedure CVTRPGFREE in program JMJ/CVTRPGFREE
received the message CPF4102 at statement 556000 while performing an
explicit OPEN operation on file QRPGLESRC. The actual file is
QTEMP/QRPGLESRC(WWITEMS_FF).

My solution was to run the CL program and it went OK :
Call CVTRPGFREC PARMS('WWITEMS' 'QRPGLESRC JMJ ' 'QRPGLESRC XAN4JMRS2 ‘ ‘WWITEMS_FF’ ‘Y’ ‘N’ ‘N’)

The actual conversion looked OK.

Discussion

  • Jean-Marc Jalbert

    Oups! there is a typo in the call syntax. It should have been:
    CALL CVTRPGFREC PARMS('WWITEMS' 'QRPGLESRC JMJ ' 'QRPGLESRC XAN4JMRS2 ‘ ‘WWITEMS_FF’ ‘Y’ ‘N’ ‘N’)

     
  • Ewarwoowar

    Ewarwoowar - 2017-03-16

    Thanks for the feedback Jean-Marc. I'll take a look and see if I can reproduce the issue.

     
  • Ewarwoowar

    Ewarwoowar - 2017-03-16

    Hi Jean-Marc,

    I changed my command to call the RPG program and got the error you've reported.

    Can you check the program that the command calls? I think you've compiled it to call CVTRPGFREE (i.e. the RPG program) but it needs to call CVTRPGFRC (the CLLE program).

    Cheers.

     
  • Ewarwoowar

    Ewarwoowar - 2017-03-23

    Assumed to be OK now, so ticket is being closed.

     
  • Ewarwoowar

    Ewarwoowar - 2017-03-23
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB