DSPLY Opcode produces CPF4131 for DSPF in use.

Use this board for starting discussions, asking questions, and giving advice on RPG programming for the IBM i platform (and predecessors.)
BFoster
Profound User
Posts: 50
Joined: Fri May 24, 2019 6:26 am
First Name: Ben
Last Name: Foster
Company Name: Manhattan Assurance Company
Contact:

DSPLY Opcode produces CPF4131 for DSPF in use.

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: DSPLY Opcode produces CPF4131 for DSPF in use.

Post 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.
BFoster
Profound User
Posts: 50
Joined: Fri May 24, 2019 6:26 am
First Name: Ben
Last Name: Foster
Company Name: Manhattan Assurance Company
Contact:

Re: DSPLY Opcode produces CPF4131 for DSPF in use.

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests