CPF4102 with the CMD but call to CL program is OK.
Convert fixed-format RPG code to free-form RPGILE code
Brought to you by:
ewarwoowar
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.
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’)
Thanks for the feedback Jean-Marc. I'll take a look and see if I can reproduce the issue.
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.
Assumed to be OK now, so ticket is being closed.