Page 1 of 1
DSPLY Opcode produces CPF4131 for DSPF in use.
Posted: Fri May 24, 2019 6:38 am
by BFoster
First, this is not a critical problem. Just thought you guys should know. I added the DSPLY opcode to my SQLRPGLE program and just after the execute of that opcode the application produced CPF4131 for the display file the app is using. In all of my 44 years of RPG, I've never seen this while a file was being used. On startup, yes, but never when in the middle of running. I then removed the DSPLY opcode, recompiled and the message never appears again.
Re: DSPLY Opcode produces CPF4131 for DSPF in use.
Posted: Fri May 24, 2019 7:36 pm
by Scott Klement
The DSPLY opcode doesn't use a display file, so I don't understand how it can possibly cause a CPF4131 (Record format level check).
Can you show us how to make that happen? Never heard of it before.
Re: DSPLY Opcode produces CPF4131 for DSPF in use.
Posted: Fri Jun 07, 2019 7:09 am
by BFoster
I don't have the code example any longer since removing it from the RPG program. Reproducing the level check format error would be a simple matter of inserting the DSPLY command to display a variable value. Removing the DSPLY command and recompiling removed the CPF4131.