Errors CPF5192 and RPG1251 (RPG) RNX1251 (RPG ILE) when running 2E generated program

Document ID : KB000044664
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptoms:

The program abends with errors:

CPF5121 - Data sent to device ... not valid. Negative response code is 10050126.  

RPG1251 or RNX1251 - Permanent I/O error occurred in file ...

 

Cause:

The DSPF of the program has RSTDSP set to *NO; you can check this with DSPFD.

 

Resolution:

Use CHGDSPF to set RSTDSP to *YES. 

 

Additional Information: 

The RSTDSP parameter is set when the DSPF is created and the source member has been processed by the 2E Toolkit Compile Pre-Processor.

Check that the DSPF source member has the override RSTDSP(*YES) and that the program and DSPF were correctly created from the 2E model.